Share via


anyAttribute Property (ISchemaComplexType)

 

[This feature was only implemented for MSXML 6.0.]

Returns an ISchemaAny object. This object provides information about the <anyAttribute> element in the <complexType> declaration.

JScript Syntax

var oAnyAttribute = oISchemaComplexType.anyAttribute;  

Parameters

None.

Return Values

oAnyAttribute
An object. The anyAttribute object, if one is declared.

Example

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

    StrAny = oComplex.anyAttribute.name
    If Err.number = 0 Then
        res = res + oComplex.anyAttribute.name
    End If

Visual Basic Syntax

Set oAnyAttribute = oISchemaComplexType.anyAttribute  

Parameters

None.

Return Values

oAnyAttribute
An object. The anyAttribute object, if one is declared.

C/C++ Syntax

HERESULT get_anyAttribute(ISchemaAny** anyAttribute);  

Parameters

anyAttribute[out,retval]
An object. Pointer to the anyAttribute object.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the anyAttribute object is NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaComplexType Interface

See Also

anyAttribute Element