次の方法で共有


modelGroups Property

 

[This feature was first implemented for MSXML 6.0.]

Returns an ISchemaItemCollection that contains ISchemaModelGroup objects. The model group will contain any combination of the following objects: ISchemaElement, ISchemaModelGroup, and ISchemaAny.

To obtain information about the objects returned in the collection, use the itemType property to determine the correct interface to use. For more information about the use of model groups in an XML schema, see Content Models and Named Model Groups, in the XML Schema Developer's Guide.

The modelGroups property returns just the model groups for a single target namespace. If you want to see all of the model groups for all target namespaces, you must query each target namespace separately.

JScript Syntax

var oModelGroups = oISchema.modelGroups;  

Parameters

None.

Return Values

oModelGroups
An object. The collection of <group> declarations. This collection contains objects that implement the ISchemaModelGroup interface.

Visual Basic Syntax

Set oModelGroups = oISchema.modelGroups  

Parameters

None.

Return Values

oModelGroups
An object. The collection of <group> declarations. This collection contains objects that implement the ISchemaModelGroup interface.

C/C++ Syntax

HRESULT get_modelGroups (ISchemaItemCollection** modelGroups);  

Parameters

modelGroups[out,retval]
An object. The collection of <group> declarations.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the modelGroups collection is NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchema Interface

See Also

ISchemaItemCollection Interface
ISchemaModelGroup Interface