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

AF SDK Reference

PIPoint.TryFindPIPoint Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIPoint.TryFindPIPoint Method
Find a PIPoint on the current PIServer using the specified point name without throwing an exception.

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

Syntax

public static bool TryFindPIPoint(
	PIServer piServer,
	string pointName,
	out PIPoint piPoint
)
Public Shared Function TryFindPIPoint ( 
	piServer As PIServer,
	pointName As String,
	<OutAttribute> ByRef piPoint As PIPoint
) As Boolean

Dim piServer As PIServer
Dim pointName As String
Dim piPoint As PIPoint
Dim returnValue As Boolean

returnValue = PIPoint.TryFindPIPoint(piServer, 
	pointName, piPoint)
public:
static bool TryFindPIPoint(
	PIServer^ piServer, 
	String^ pointName, 
	[OutAttribute] PIPoint^% piPoint
)
static member TryFindPIPoint : 
        piServer : PIServer * 
        pointName : string * 
        piPoint : PIPoint byref -> bool 

Parameters

piServer
Type: OSIsoft.AF.PIPIServer
The PIServer to search for the desired PIPoint objects.
pointName
Type: SystemString
The name of the desired PIPoint on the current PIServer.
piPoint
Type: OSIsoft.AF.PIPIPoint
The returned PIPoint identified by the specified pointName.

Return Value

Type: Boolean
Returns if the PIPoint identified by the specified pointName was found. Returns if it was not found.

Version Information

AFSDK


See Also

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