Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PIServer.Disconnect Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServer.Disconnect Method
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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in