다음을 통해 공유


value Property (Windows Embedded CE 6.0)

1/6/2010

Contains the attribute value.

Script Syntax

            objValue = oXMLDOMAttribute.value;
objXMLDOMAttribute.value = objValue;

Remarks

Ee503530.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee503530.collapse(en-US,WinEmbedded.60).gifScript Return Value

Variant. It returns the value of the attribute. For attributes with subnodes, the string is the concatenated text of all subnodes with character and general entity references expanded (replaced with their values).

Ee503530.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_value(
  VARIANT* attributeValue
);
HRESULT put_value(
  VARIANT* attributeValue
);

Remarks

Ee503530.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • attributeValue
    [out, retval][in] Value of the attribute. For attributes with subnodes, the string is the concatenated text of all subnodes with character and general entity reference expanded (replaced with their values).

Ee503530.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_INVALIDARG (for get_value only)
    Value returned if attributeValue is Null.
  • E_FAIL (for put_value only)
    Value returned if an error occurs.

Ee503530.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

The property is read/write.

The new attribute value is added as the value of a single text node that is a child of the attribute node. The string contents are unparsed.

This property is read/write, and applies to the following interface:

IXMLDOMAttribute.

See Also

Reference

XML DOM Properties