Validates that the specified attribute class exists in the AOT; if not, a compiler error occurs.
Function
- str classStr(class class)
Parameters
- Parameter: class
- Description: The name of the attribute to validate.
Return Value
- The name of the attribute.
Attributes are classes that inherit from the SysAttribute class.
Example
- X++
static void attributeStrExample(Args _args)
{
str s;
;
s = attributeStr(AifDocumentOperationAttribute);
print s;
pause;
}
My above blog is based on Microsoft's Official information.
I hope this blog about 'Microsoft Dynamics AX 2012 R2 - attributeStr Function' was informative. Please feel free to leave your comments.
No comments:
Post a Comment