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

AF SDK Reference

PIServers.GetPIServers Method (PISystem)

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServers.GetPIServers Method (PISystem)
Get the list of known PIServers on the local machine.

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

Syntax

public static PIServers GetPIServers(
	PISystem system = null
)
Public Shared Function GetPIServers ( 
	Optional system As PISystem = Nothing
) As PIServers

Dim system As PISystem
Dim returnValue As PIServers

returnValue = PIServers.GetPIServers(system)
public:
static PIServers^ GetPIServers(
	PISystem^ system = nullptr
)
static member GetPIServers : 
        ?system : PISystem 
(* Defaults:
        let _system = defaultArg system null
*)
-> PIServers 

Parameters

system (Optional)
Type: OSIsoft.AFPISystem
The PISystem for the current user attempting to obtain the PIServer object. If , then a security check will be performed to validate the current user.

Return Value

Type: PIServers
Returns the list of known PIServers on the local machine.

Remarks

This method is used to obtain a list of PIServer objects that are known on the local machine. This method will NOT require a security check each time it is called if a system is specified.

Version Information

AFSDK


See Also

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