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

AF SDK Reference

AFObject.FindObjects Method (String, AFObject)

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFObject.FindObjects Method (String, AFObject)
Finds a list of objects identified by the path, relative from the specified object.

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

Syntax

public static IList<AFObject> FindObjects(
	string path,
	AFObject relativeFrom
)
Public Shared Function FindObjects ( 
	path As String,
	relativeFrom As AFObject
) As IList(Of AFObject)

Dim path As String
Dim relativeFrom As AFObject
Dim returnValue As IList(Of AFObject)

returnValue = AFObject.FindObjects(path, 
	relativeFrom)
public:
static IList<AFObject^>^ FindObjects(
	String^ path, 
	AFObject^ relativeFrom
)
static member FindObjects : 
        path : string * 
        relativeFrom : AFObject -> IList<AFObject> 

Parameters

path
Type: SystemString
A string containing a pathname that is relative to the specified object, or a fully qualified path. See Path Syntax for more information.
relativeFrom
Type: OSIsoft.AFAFObject
Specifies the object that the path was retrieved from. The query date of this object will be used where applicable.

Return Value

Type: IListAFObject
Returns a list of objects identified by the path, relative from the specified object.

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

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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