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

AF SDK Reference

AFObject.FindObject Method (String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFObject.FindObject Method (String)
Finds the object identified by the full path.

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

Syntax

public static AFObject FindObject(
	string path
)
Public Shared Function FindObject ( 
	path As String
) As AFObject

Dim path As String
Dim returnValue As AFObject

returnValue = AFObject.FindObject(path)
public:
static AFObject^ FindObject(
	String^ path
)
static member FindObject : 
        path : string -> AFObject 

Parameters

path
Type: SystemString
A string containing a fully qualified pathname. See Path Syntax for more information.

Return Value

Type: AFObject
Returns the object identified by the full path.

Remarks

A path to an object is created by the one of the AFObjectGetPath methods and can be restored from a string using this method. A path, such as "\\MySystem\MyDatabase\MyElement|Attribute1", can be used to reference any object derived from AFObject. See Path Syntax for a complete description of the path syntax.

Note Notes to Callers
The ShowExcludedAttributes setting will determine if excluded attributes are returned when finding attributes by path.

Version Information

AFSDK


See Also

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