PIStateSets.Contains Method (AFEnumerationSet)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method determines whether the collection contains a specific state set.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Contains( AFEnumerationSet item )
Public Function Contains ( item As AFEnumerationSet ) As Boolean Dim instance As PIStateSets Dim item As AFEnumerationSet Dim returnValue As Boolean returnValue = instance.Contains(item)
public: virtual bool Contains( AFEnumerationSet^ item ) sealed
abstract Contains : item : AFEnumerationSet -> bool override Contains : item : AFEnumerationSet -> bool
Parameters
- item
- Type: OSIsoft.AF.AssetAFEnumerationSet
The state set sought in the collection.
Return Value
Type: Booleanif the collection contains the item; otherwise, .