Click or drag to resize

QueryServiceFindByID Method

Finds the first element in the defined document, which ID is equal to the provided ID.

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

Parameters

caexDocument  CAEXDocument
The XDocument
id  String
The ID to look at
resolveAlias  Boolean  (Optional)
if set to true tries to resolve an alias reference with an ExternalReferenceResolver service.

Return Value

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

Implements

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