Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFEnumerationSet.Contains Method (Int32)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEnumerationSet.Contains Method (Int32)
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: Boolean
Returns if the item was found in the collection; otherwise, is returned.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in