Click or drag to resize

QueryServiceFindByPath Method

This method tries to find the first element in the defined document, which CAEXPath is equal to the provided path. If the path uses an alias to reference an object in a external document it is tried to locate an IExternalReferenceResolver service. If such a service is registered, the CAEXObject is tried to be found in the resolved document.

Namespace: Aml.Engine.Services
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public CAEXObject FindByPath(
	CAEXDocument caexDocument,
	string path,
	bool resolveAlias = false
)

Parameters

caexDocument  CAEXDocument
The XDocument
path  String
The CAEXPath to look at
resolveAlias  Boolean  (Optional)
if set to true [resolve alias].

Return Value

CAEXObject
the CAEXObject or null, if no element with the specified path could be found.

Implements

IQueryFindByPath(CAEXDocument, String, Boolean)
Exceptions
ExceptionCondition
ArgumentNullExceptioncaexDocument
Remarks
The resolveAlias is ignored. If the ExternalReferenceResolver is registered, the alias references are always resolved.
See Also