Microsoft XML Core Services (MSXML) 4.0 - SOM Reference

anyAttribute Property

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

[Script]

Implementation 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. To see the snippet in the application code, click here.

    Set any = oComplex.anyAttribute.name
    If Err.number = 0 Then
        res = res + oComplex.anyAttribute.name

End If

[Visual Basic]

Implementation Syntax

Set oAnyAttribute = oISchemaComplexType.anyAttribute

Parameters

None.

Return Values

oAnyAttribute
An object. The anyAttribute object, if one is declared.
[C/C++]

Implementation 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.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

anyAttribute Element

Applies to: ISchemaComplexType Interface

This HTML Help has been published using the chm2web software.