replaceData Method (Windows CE 5.0)

Send Feedback

Replaces the specified number of characters with the supplied string.

[Script]

Script Syntax

oXMLDOMCharacterData.replaceData(offset,count,data);

Script 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.

Script Return Value

None.

[C/C++]

C/C++ Syntax

HRESULT replaceData(longoffset,longcount,BSTRdata);

C/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.

C/C++ Return Values

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, and IXMLDOMText.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.