 | CAEXPathBuilderIsValidID Method |
Determines whether the specified string can represent an ID
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool IsValidID(
string idString,
CAEXDocument document = null
)
Public Shared Function IsValidID (
idString As String,
Optional document As CAEXDocument = Nothing
) As Boolean
public:
static bool IsValidID(
String^ idString,
CAEXDocument^ document = nullptr
)
Parameters
- idString String
- The identifier string.
- document CAEXDocument (Optional)
- The CAEX document
Return Value
Booleantrue if the specified identifier string can be used as an identifier; otherwise,
false.
Remarks
This method should only be used for testing strings which are retrieved from an attribute where an ID is a valid
value.
It is not possible to distinguish a Name from an ID, because it exists neither a defined syntax for object names
nor
for object IDs. Only if the UUID format is used to represent an ID the ID format is recognized.
See Also