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

AF SDK Reference

AFObject.GetPath Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFObject.GetPath Method
Returns the full path to the object, using just the names.

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

Syntax

public string GetPath()
Public Function GetPath As String

Dim instance As AFObject
Dim returnValue As String

returnValue = instance.GetPath()
public:
String^ GetPath()
member GetPath : unit -> string 

Return Value

Type: String
Returns the full path to the object, using just the names.

Remarks

A path to an object is created by this method and can be restored from a string using one of the AFObjectFindObject or AFObjectFindObjects methods. 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.

Version Information

AFSDK


See Also

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