PIStateSets.Remove Method (AFEnumerationSet)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Removes a PI Digital State Set from the PI Data Archive
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Remove( AFEnumerationSet item )
Public Function Remove ( item As AFEnumerationSet ) As Boolean Dim instance As PIStateSets Dim item As AFEnumerationSet Dim returnValue As Boolean returnValue = instance.Remove(item)
public: virtual bool Remove( AFEnumerationSet^ item ) sealed
abstract Remove : item : AFEnumerationSet -> bool override Remove : item : AFEnumerationSet -> bool
Parameters
- item
- Type: OSIsoft.AF.AssetAFEnumerationSet
The digital state set to delete.
Return Value
Type: Booleanif the item is successfully removed; otherwise, . This method also returns if name was not found in the original collection.
Implements
ICollectionTRemove(T)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If item is . |
| ArgumentException | If the item is not a PI Digital State Set. |
Remarks
The set is immediately deleted from the PI Data Archive.