Was this helpful?
GetAttribute Method
The GetAttribute method gets the values of any number of attributes for the object.
This method has the following syntax:
integer = Object.GetAttribute(attributename = byref(variable)
          {, attributename = byref(variable)})
This method has the following parameters:
attributename
Specifies the attribute whose value you want to obtain
variable
Specifies the variable into which you place the attribute's value
The method returns ER_OK if all the attributes exist and there are no data type mismatches between attributes and their associated variables. The method returns a non-zero value if any errors occur. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.
In general, it is more efficient to access the attributes directly, through their individual classes, rather than using the GetAttribute method.
Last modified date: 12/20/2023