AFEnumerationSet.FindEnumerationSets Method (PISystem, Guid[])
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Performs a search within the PISystem to retrieve a collection
of AFEnumerationSet objects with the specified list of unique identifiers.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFNamedCollectionList<AFEnumerationSet> FindEnumerationSets( PISystem system, Guid[] ids )
Public Shared Function FindEnumerationSets ( system As PISystem, ids As Guid() ) As AFNamedCollectionList(Of AFEnumerationSet) Dim system As PISystem Dim ids As Guid() Dim returnValue As AFNamedCollectionList(Of AFEnumerationSet) returnValue = AFEnumerationSet.FindEnumerationSets(system, ids)
public: static AFNamedCollectionList<AFEnumerationSet^>^ FindEnumerationSets( PISystem^ system, array<Guid>^ ids )
static member FindEnumerationSets : system : PISystem * ids : Guid[] -> AFNamedCollectionList<AFEnumerationSet>
Parameters
- system
- Type: OSIsoft.AFPISystem
The PISystem to search for the desired objects. - ids
- Type: SystemGuid
An array of the unique identifiers of the objects to load.
Return Value
Type: AFNamedCollectionListAFEnumerationSetReturns a collection of the objects in the system which match the unique identifiers in the ids list. If no object can be found for a unique identifier in the list, there will be no corresponding entry in the returned collection. The order of items in the returned collection might not match the order of specified ids, but the returned collection items can be accessed by ID.
Remarks
This method will search for matching objects based upon its ID and load its header from the server if not already loaded in the SDK. If you need a fully loaded object, then the LoadEnumerationSets(PISystem, Guid) method should be used instead.