PIServers.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.PI
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 PIServers Dim id As Guid Dim returnValue As Boolean returnValue = instance.Contains(id)
public: virtual bool Contains( Guid id ) sealed
abstract Contains : id : Guid -> bool override 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, .
Implements
IAFListContains(Guid)
Remarks
This method approaches an O(1) operation.