Partager via


deleteData Method (Compact 2013)

3/26/2014

Deletes specified data.

Syntax

oXMLDOMCharacterData.deleteData(offset, count);
HRESULT deleteData(long offset, long count);

Parameters

Script

  • offset
    Long integer value specifying the offset, in characters, at which to start deleting string data.
  • count
    Long integer value specifying the number of characters to delete.

C/C++

  • offset
    [in] Offset, in characters, at which to start deleting string data.
  • count
    [in] Number of characters to delete.

Return Value

Script

None.

C/C++

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

Remarks

If the offset and count of characters specify a range beyond the end of the string, this method deletes only to the end of the string.

The length Property (IXMLDOMNodeList) for IXMLDOMNodeList is updated by this operation.

This method applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, and IXMLDOMText.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods