PIServer.Disconnect Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Close a connection to the PI Data Archive.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public void Disconnect()
Public Sub Disconnect Dim instance As PIServer instance.Disconnect()
public: void Disconnect()
member Disconnect : unit -> unit
Remarks
Closing a connection to the PI Data Archive can allow the SDK to free up
resources when access to the server is no longer needed. This method is
also used when an application already connected to a server wishes to connect
as a different user.