attributeGroups Property
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.
Example
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
Implementation Syntax
var oAttributeGroups = oISchema.attributeGroups;
Parameters
None.
Return Values
- oAttributeGroups
- An object. The collection of
<attributeGroup>
declarations. This collection contains objects that implement theISchemaAttributeGroup
interface.
Implementation Syntax
Set oAttributeGroups = oISchema.attributeGroups
Parameters
None.
Return Values
- oAttributeGroups
- An object. The collection of
<attributeGroup>
declarations. This collection contains objects that implement theISchemaAttributeGroup
interface.
Implementation Syntax
HRESULT get_attributeGroups (ISchemaItemCollection** attributeGroups);
Parameters
- attributeGroups [out,retval]
- An object. The collection of
<attributeGroup>
declarations.
Return Values
- S_OK
- The value returned if successful.
- E_Pointer
- The value returned if the
attributeGroups
collection is NULL. - E_FAIL
- The value returned if something else is wrong.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
See Also
ISchemaItemCollection Interface | ISchemaAttributesGroup Interface
Applies to: ISchema Interface