AFEnumerationSet.Contains Method (Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method determines whether the collection contains a specific item referenced by id.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Contains( Guid id )
Public Function Contains ( id As Guid ) As Boolean Dim instance As AFEnumerationSet Dim id As Guid Dim returnValue As Boolean returnValue = instance.Contains(id)
public: bool Contains( Guid id )
member Contains : id : Guid -> bool
Parameters
- id
- Type: SystemGuid
The id to locate in the collection.
Return Value
Type: BooleanReturns if the collection contains an item with the specified id; otherwise, .
Remarks
This method approaches an O(1) operation.