次の方法で共有


insertData Method (Compact 2013)

3/26/2014

Inserts a string at the specified offset.

Syntax

oXMLDOMCharacterData.insertData(offset, data);
HRESULT insertData(
  long offset,
  BSTR data
);

Parameters

Script

  • offset
    Long integer specifying the offset, in characters, at which to insert the supplied string data.
  • data
    String containing the data that is to be inserted into the existing string.

C/C++

  • offset
    [in] Offset, in characters, at which to insert the supplied string data.
  • data
    [in] String data that is to be inserted into the existing string.

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

The length Property (IXMLDOMCharacterData) 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