 | QueryServiceFindByID Method |
Finds the first element in the defined document, which ID is equal to the provided ID.
Namespace: Aml.Engine.ServicesAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic CAEXObject FindByID(
CAEXDocument caexDocument,
string id,
bool resolveAlias = false
)
Public Function FindByID (
caexDocument As CAEXDocument,
id As String,
Optional resolveAlias As Boolean = false
) As CAEXObject
public:
virtual CAEXObject^ FindByID(
CAEXDocument^ caexDocument,
String^ id,
bool resolveAlias = false
) sealed
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
Remarks
The resolveAlias is ignored. If the ExternalReferenceResolver is registered, the
alias references are always resolved.
See Also