IXMLElement::setAttributeIXMLElement::setAttribute*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IXMLElement::get_parent
*Next Topic: IXMLElement::get_Attribute

IXMLElement::setAttribute

HRESULT IXMLElement::setAttribute(
    BSTR strPropertyName, 
    VARIANT PropertyValue)

Allows the setting of an attribute of this element.

strPropertyName
Name of the attribute
PropertyValue
Value of the attribute. The allowed input type is VT_BSTR.

The attribute's name and its new value are provided. The previous value of this attribute is lost. A private copy of the input value is made. The attribute value is always stored as a string, thus it should be sent in as a string.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.