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 (PISystem, Guid)

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServer.FindPIServer Method (PISystem, Guid)
Find the PIServer from the specified unique identifier 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,
	Guid id
)
Public Shared Function FindPIServer ( 
	system As PISystem,
	id As Guid
) As PIServer

Dim system As PISystem
Dim id As Guid
Dim returnValue As PIServer

returnValue = PIServer.FindPIServer(system, 
	id)
public:
static PIServer^ FindPIServer(
	PISystem^ system, 
	Guid id
)
static member FindPIServer : 
        system : PISystem * 
        id : Guid -> 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.
id
Type: SystemGuid
The unique identifier of the PIServer object to find.

Return Value

Type: PIServer
Returns the found PIServer object associated with the specified id.

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.

Version Information

AFSDK


See Also

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