Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the value of the specified attribute.
![]() |
Syntax
HRESULT retVal = object.getAttribute(strAttributeName, AttributeValue);
Parameters
strAttributeName [in]
Type: BSTRBSTR that specifies the name of the attribute.
AttributeValue [out, retval]
Type: VARIANTPointer to a VARIANT that returns a BSTR, number, or VARIANT_BOOL value, as defined by the attribute. If the attribute is not present, this method returns
null
.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The specified attribute name will always retrieve its appropriate string value.
See also
Reference
Conceptual