Click or drag to resize
OSIsoft, LLC

AFObjectFindObjects Method (IListAFPathToken, AFObject)

Finds a list of objects identified by the list of parsed path tokens relative from an optional object.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public static IList<AFObject> FindObjects(
	IList<AFPathToken> pathTokens,
	AFObject relativeFrom = null
)

Parameters

pathTokens
Type: System.Collections.GenericIListAFPathToken
A list of path tokens string representing a pathname that is relative to the specified object, or a fully qualified path. The list of path tokens can be generated using the ParsePath(String, AFObject, Boolean, AFIdentity) method. See Path Syntax for more information.
relativeFrom (Optional)
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 list of parsed path tokens relative from an optional 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: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6
See Also
Enabling Operational Intelligence