AFEnumerationSet.Remove Method (Int32)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The Remove method removes the item from the collection by its value.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Remove( int enumValue )
Public Function Remove ( enumValue As Integer ) As Boolean Dim instance As AFEnumerationSet Dim enumValue As Integer Dim returnValue As Boolean returnValue = instance.Remove(enumValue)
public: bool Remove( int enumValue )
member Remove : enumValue : int -> bool
Parameters
- enumValue
- Type: SystemInt32
The value of the AFEnumerationValue.Value property of the enumeration value to be removed from the collection. It must be equal to the Value property of the member of the collection to be removed.
Return Value
Type: BooleanReturns if the item is successfully removed; otherwise, . This method also returns if enumValue was not found in the original collection.
Remarks
This method removes the item from the collection with the specified value.