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

AF SDK Reference

PIServer.FindPIServer Method (String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServer.FindPIServer Method (String)
Find the PIServer from the specified name.

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

Syntax

public static PIServer FindPIServer(
	string name
)
Public Shared Function FindPIServer ( 
	name As String
) As PIServer

Dim name As String
Dim returnValue As PIServer

returnValue = PIServer.FindPIServer(name)
public:
static PIServer^ FindPIServer(
	String^ name
)
static member FindPIServer : 
        name : string -> PIServer 

Parameters

name
Type: SystemString
The name of the PIServer object to find.

Return Value

Type: PIServer
Returns 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 require a security check each time it is called. Use the FindPIServer(PISystem, String) version to avoid duplicate security checks.

Version Information

AFSDK


See Also

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