PIServers.GetPIServers Method (ClaimsIdentity, Boolean)
- 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( ClaimsIdentity claimsIdentity, bool forceNewInstance = false )
Public Shared Function GetPIServers ( claimsIdentity As ClaimsIdentity, Optional forceNewInstance As Boolean = false ) As PIServers Dim claimsIdentity As ClaimsIdentity Dim forceNewInstance As Boolean Dim returnValue As PIServers returnValue = PIServers.GetPIServers(claimsIdentity, forceNewInstance)
public: static PIServers^ GetPIServers( ClaimsIdentity^ claimsIdentity, bool forceNewInstance = false )
static member GetPIServers : claimsIdentity : ClaimsIdentity * ?forceNewInstance : bool (* Defaults: let _forceNewInstance = defaultArg forceNewInstance false *) -> PIServers
Parameters
- claimsIdentity
- Type: System.Security.ClaimsClaimsIdentity
The ClaimsIdentity for the current user attempting to obtain the PIServer object. - forceNewInstance (Optional)
- Type: SystemBoolean
Set to to force the creation of an independent collection of PIServers for the current user with a separate cache.
Return Value
Type: PIServersReturns the list of known PIServers on the local machine.