PIStateSets.Remove Method (String)
- 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 by name
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Remove( string name )
Public Function Remove ( name As String ) As Boolean Dim instance As PIStateSets Dim name As String Dim returnValue As Boolean returnValue = instance.Remove(name)
public: bool Remove( String^ name )
member Remove : name : string -> bool
Parameters
- name
- Type: SystemString
The name of the set.
Return Value
Type: Booleanif the item is successfully removed; otherwise, . This method also returns if name was not found in the original collection.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If name is or empty. |
Remarks
The set is immediately deleted from the PI Data Archive.