AxdBaseCreate.checkCurrentElement Method [AX 2012]
This method is for internal use only.
Checks if the current xml element name matches the specified name.
Syntax
protected boolean checkCurrentElement(str _expectedElementName, [boolean _throw])
Run On
Server
Parameters
- _expectedElementName
Type: str
The expected element name to check for.
- _throw
Type: boolean
Flag to indicate that an exception should be thrown if the current element name does not match the expected element name.
Return Value
Type: boolean
true if the current element name matches the specified name; otherwise, false.
Exceptions
Exception | Condition |
---|---|
Error | An exception is thrown if the current element name does not match the specified name and the _throw parameter is true. |