次の方法で共有


remove Method1

 

Removes the specified namespace from a collection.

JScript Syntax

objXMLDOMSchemaCol.remove(namespaceURI);  

Parameters

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

Visual Basic Syntax

objXMLDOMSchemaCol.remove
(namespaceURI)  

Parameters

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++ Syntax

HRESULT remove(BSTR namespaceURI);  

Parameters

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 Values

E_INVALIDARG
The value returned if the namespace does not exist in the collection.

E_FAIL
The value returned if the collection is read-only.

Remarks

In MSXML 6.0, when a schema is added to the SchemaCache, it can import schemas from other namespaces. Furthermore, all schemas added to the SchemaCache can be merged with schemas that have the same namespace. Therefore, the remove method no longer reverses the actions taken when you call the add method. The remove method is deprecated in MSXML 6.0, and throws a Not Implemented exception.

Versioning

Implemented in: MSXML 3.0, MSXML 4.0, and MSXML 5.0. Not implemented in MSXML 6.0.

See Also

IXMLDOMSchemaCollection-XMLSchemaCache