PIServer.Disconnect Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Close a connection to the PI Data Archive.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
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.