PIServer.FindPIServer Method (PISystem, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Find the PIServer from the specified name using the credentials
of the current user associated with the specified PISystem.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static PIServer FindPIServer( PISystem system, string name )
Public Shared Function FindPIServer ( system As PISystem, name As String ) As PIServer Dim system As PISystem Dim name As String Dim returnValue As PIServer returnValue = PIServer.FindPIServer(system, name)
public: static PIServer^ FindPIServer( PISystem^ system, String^ name )
static member FindPIServer : system : PISystem * name : string -> PIServer
Parameters
- system
- 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. - name
- Type: SystemString
The name of the PIServer object to find.
Return Value
Type: PIServerReturns the found PIServer object associated with the specified name.
Remarks
This method is used to obtain a PIServer object to be used to
access the PI Data Archive. This method will NOT require a security check each
time it is called if a PISystem is specified.