Contents Index Topic Contents | ||
Previous Topic: IXMLElement::setAttribute Next Topic: IXMLElement::removeAttribute |
IXMLElement::get_Attribute
HRESULT IXMLElement::get_Attribute( BSTR strPropertyName, VARIANT* PropertyValue)Allows for the retrieval of an attribute's value.
- Returns S_OK if successful. Other returned error values include E_OUTOFMEMORY and S_FALSE if no such attribute exists to prevent scripting errors.
- strPropertyName
- Name of the attribute.
- PropertyValue
- Indirect pointer in which to return the value. Always returned as a BSTR.
An attribute's name is provided. The value of the attribute is returned as a variant, which is always of type VT_BSTR. The caller must release the value by calling VariantClear.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.