 | CAEXDocumentExtensionsFindByID Method |
Tries to locate a CAEX object from the specified ID.
If the ID uses an alias reference and an
IExternalReferenceResolver can be located,
it is tried to resolve the external reference and to get the object from the external source.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static CAEXObject FindByID(
this CAEXDocument document,
string id,
bool resolveAlias = false
)
<ExtensionAttribute>
Public Shared Function FindByID (
document As CAEXDocument,
id As String,
Optional resolveAlias As Boolean = false
) As CAEXObject
public:
[ExtensionAttribute]
static CAEXObject^ FindByID(
CAEXDocument^ document,
String^ id,
bool resolveAlias = false
)
Parameters
- document CAEXDocument
- The document.
- id String
- The identifier.
- resolveAlias Boolean (Optional)
-
if set to true tries to resolve an alias reference with an ExternalReferenceResolver
service.
Return Value
CAEXObject
The CAEXObject if it is found; otherwise
null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CAEXDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also