Share via


replaceData Method (Windows Embedded CE 6.0)

1/6/2010

Replaces the specified number of characters with the supplied string.

Script Syntax

oXMLDOMCharacterData.replaceData(offset, count, data);

Remarks

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

  • offset
    Long integer value specifying the offset, in characters, at which to start replacing string data.
  • count
    Long integer value specifying the number of characters to replace.
  • data
    String containing the new data that replaces the old string data.

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

None.

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

HRESULT replaceData(
  long offset,
  long count,
  BSTR data
);

Remarks

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

  • offset
    [in] Offset, in characters, at which to start replacing string data.
  • count
    [in] Number of characters to replace.
  • data
    [in] New data that replaces the old string data.

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

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value when returning Null.
  • E_FAIL
    Value returned if an error occurs.

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

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

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, and IXMLDOMText.

See Also

Reference

XML DOM Methods