PIServers.Clear Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Unregisters all existing PIServer entries from the list of known
PI Data Archive servers on the local machine.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public void Clear()
Public Sub Clear Dim instance As PIServers instance.Clear()
public: virtual void Clear() sealed
abstract Clear : unit -> unit override Clear : unit -> unit
Implements
ICollectionTClearIListClear
Remarks
This method is used to unregister all existing PIServer entries from the list of
known PI Data Archive servers on the local machine except the DefaultPIServer.
This does not affect the configuration of servers on other client computers.