PIServers.GetPIServers Method (PISystem)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: PIServersReturns 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.