PIStateSets.Contains Method (AFEnumerationSet)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- 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.2.0.7
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, .