次の方法で共有


remove Method (Compact 2013)

3/26/2014

Removes the specified namespace from a collection.

Syntax

objXMLDOMSchemaCol.remove(namespaceURI);
HRESULT remove(
  BSTR namespaceURI
);

Parameters

Script

  • namespaceURI
    The namespace to remove from the collection. This can be any string that can be used in an xmlns attribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlns attribute occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

C/C++

  • namespaceURI
    [in] The namespace to remove from the collection.

    This can be any string that can be used in an xmlns attribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlns attribute occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

Return Value

Script

None.

C/C++

  • E_INVALIDARG
    Value returned if the namespace does not exist in the collection.
  • E_FAIL
    Value returned if the collection is read-only.

Remarks

This method applies to the following objects and interfaces:

XMLSchemaCache/IXMLDOMSchemaCollection.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods