Поделиться через


addCollection Method (Windows Embedded CE 6.0)

1/6/2010

Adds schemas from another collection into the current collection and replaces any schemas that collide on the same namespace Uniform Resource Identifier (URI).

Script Syntax

objXMLDOMSchemaCol.addCollection(objXMLDOMSchemaCollection);

Remarks

Ee502323.collapse(en-US,WinEmbedded.60).gifScript Parameters

  • objXMLDOMSchemaCollection
    The collection containing the schemas to add.

Ee502323.collapse(en-US,WinEmbedded.60).gifScript Return Value

None

C/C++ Syntax

HRESULT addCollection(
  IXMLDOMSchemaCollection* otherCollection
);

Remarks

Ee502323.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • objXMLDOMSchemaCollection
    [in] The collection containing the schemas to add.

Ee502323.collapse(en-US,WinEmbedded.60).gifC/C++ Return Value

  • S_OK
    Value returned if the collection is added successfully.
  • E_FAIL is returned if:

    • the collection is read-only.
    • the document is not a recognized schema.
    • an error occurs when compiling the schema.
    • the ready state of the document is not 4.
  • E_POINTER
    Value returned if input pointer is invalid.

Ee502323.collapse(en-US,WinEmbedded.60).gifC/C++ Requirements

OS Versions: Windows CE .NET 4.0 and later.

Header: Msxml2.h, Msxml2.idl.

Link Library: Uuid.lib

General Remarks

There is no guarantee that the two collections will return exactly the same schema. The collection is free to clone them, if necessary.

Adding a collection to itself has no effect.

This method applies to the following interface:

XMLSchemaCache/IXMLDOMSchemaCollection

See Also

Reference

XML DOM Methods