AFEnumerationSet.Contains Method (Int32)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method determines whether the collection contains a specific item value.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Contains( int enumValue )
Public Function Contains ( enumValue As Integer ) As Boolean Dim instance As AFEnumerationSet Dim enumValue As Integer Dim returnValue As Boolean returnValue = instance.Contains(enumValue)
public: bool Contains( int enumValue )
member Contains : enumValue : int -> bool
Parameters
- enumValue
- Type: SystemInt32
The value of the AFEnumerationValue.Value property of the enumeration value to be located in the collection. It must be equal to the Value property of a member of the collection in order to return a match.
Return Value
Type: BooleanReturns if the item was found in the collection; otherwise, is returned.