Share via


attributes Property (ISchemaComplexType)

 

[This feature was only implemented for MSXML 6.0.]

Returns an attribute collection. This collection contains the attributes that are a part of the <complexType> declaration. You find other attribute properties by using the ISchemaAttribute interface with the items in the collection.

JScript Syntax

var oAttributes = oISchemaComplexType.attributes;  

Parameters

None.

Return Values

oAttributes
An object. The collection of attributes declared. This collection contains objects that implement the ISchemaAttribute interface.

Example

The following snippet is taken from the Walk the SOM sample application. In this snippet, the attributes property is retrieved from the ISchemaComplexType object.

For Each oAttr in oComplex.attributes
        res = res + printAttr(oAttr, t+1)
    Next

Visual Basic Syntax

Set oAttributes = oISchemaComplexType.attributes  

Parameters

None.

Return Values

oAttributes
An object. The collection of attributes declared. This collection contains objects that implement the ISchemaAttribute interface.

C/C++ Syntax

HERESULT get_attributes(ISchemaItemCollection** attributes);  

Parameters

attributes[out,retval]
An object. The collection of attributes.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the attributes collection is NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaComplexType Interface

See Also

attribute Element