PIServers.DisconnectAll Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Disconnects all PIServers that are currently connected.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public void DisconnectAll()
Public Sub DisconnectAll Dim instance As PIServers instance.DisconnectAll()
public: void DisconnectAll()
member DisconnectAll : unit -> unit
Remarks
This method should be called by applications before exiting to ensure
all resources associated with the open connections are released. In addition
to unloading the resources, each PIServer is also
disconnected.