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

AF SDK Reference

AFEnumerationSet.Remove Method (Int32)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEnumerationSet.Remove Method (Int32)
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: Boolean
Returns 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.

Version Information

AFSDK


See Also

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