Retrieves the value of the className property of the given object. The property is typically used to associate a particular style rule in a style sheet with the object.
Syntax
HRESULT get_className( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that receives the value of the property, which can be any valid string.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
By default, the value is equal to the string assigned to the className property of the given object, or is an empty string if the property is not explicitly assigned.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Sets the value of the className property of the object. The property is typically used to associate a particular style rule in a style sheet with the object.
Syntax
HRESULT put_className( BSTR v );
Parameters
- v
- String (BSTR) that specifies the value of the attribute to set. It can be any valid string.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
By default, the property is equal to the string assigned to the className property of the given object, or is an empty string if the attribute is not explicitly assigned.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0