IAFNamedCollection(T).Contains Method (Guid)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
This method determines whether the collection contains a specific item referenced by id.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
bool Contains( Guid id )
Function Contains ( id As Guid ) As Boolean Dim instance As IAFNamedCollection Dim id As Guid Dim returnValue As Boolean returnValue = instance.Contains(id)
bool Contains( Guid id )
abstract 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.