Returns an ISchemaItemCollection
object. This collection contains ISchemaAttributeGroup
objects that are top-level items. To find secondary and lower child items, you must use the ISchemaComplexType.contentModel
property.
To obtain information about the attributes that are returned in the collection, use the ISchemaAttributeGroup
interface. For more information about using attributes in an XML Schema, see the group element in the XML Schema Reference (XSD) and Attribute Groups in the XML Schema Developer's Guide.
The following VBScript example shows how to list the top-level <attributeGroup>
declarations.
Set oSchemaCache = CreateObject("Msxml2.XMLSchemaCache.5.0") oSchemaCache.add "", "po.xsd" Set oSchema = oSchemaCache.getSchema("") For Each oAttributeGroup in oSchema.attributeGroups WScript.Echo oAttributeGroup.name Next
var oAttributeGroups = oISchema.attributeGroups;
None.
<attributeGroup>
declarations. This collection contains objects that implement the ISchemaAttributeGroup
interface.Set oAttributeGroups = oISchema.attributeGroups
None.
<attributeGroup>
declarations. This collection contains objects that implement the ISchemaAttributeGroup
interface.HRESULT get_attributeGroups (ISchemaItemCollection** attributeGroups);
<attributeGroup>
declarations.attributeGroups
collection is NULL.To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
ISchemaItemCollection Interface | ISchemaAttributesGroup Interface
Applies to: ISchema Interface