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

AF SDK Reference

PIServers.DisconnectAll Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServers.DisconnectAll Method
Disconnects all PIServers that are currently connected.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

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.

Version Information

AFSDK


See Also

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