 | 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.ServicesAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic CAEXObject FindByPath(
CAEXDocument caexDocument,
string path,
bool resolveAlias = false
)
Public Function FindByPath (
caexDocument As CAEXDocument,
path As String,
Optional resolveAlias As Boolean = false
) As CAEXObject
public:
virtual CAEXObject^ FindByPath(
CAEXDocument^ caexDocument,
String^ path,
bool resolveAlias = false
) sealed
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
Remarks
The resolveAlias is ignored. If the ExternalReferenceResolver is registered, the
alias references are always resolved.
See Also