variety Property

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

variety Property

Returns a SCHEMATYPEVARIETY constant. This constant indicates the value of the type definition.

[Script]

Implementation syntax

var conVariety = objISchemaType.variety;

Parameters

None.

Return Values

conVariety
For simple types, the variety value can be one of the following:

SCHEMATYPEVARIETY _ATOMIC

SCHEMATYPEVARIETY _LIST

SCHEMATYPEVARIETY _UNION

For complex types, the variety value is always as follows:

SCHEMATYPEVARIETY _NONE

[Visual Basic]

Implementation syntax

conVariety = objISchemaType.variety

Parameters

None.

Return Values

conVariety
For simple types, the variety value can be one of the following:

SCHEMATYPEVARIETY _ATOMIC

SCHEMATYPEVARIETY _LIST

SCHEMATYPEVARIETY _UNION

For complex types, the variety value is always as follows:

SCHEMATYPEVARIETY _NONE

[C/C++]

Implementation syntax

HRESULT get_variety(SCHEMATYPEVARIETY * variety);

Parameters

variety [out,retval]
For simple types, the variety value can be one of the following:

SCHEMATYPEVARIETY _ATOMIC

SCHEMATYPEVARIETY _LIST

SCHEMATYPEVARIETY _UNION

For complex types, the variety value is always as follows:

SCHEMATYPEVARIETY _NONE

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the variety parameter is NULL.

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

Parts of Data Types

Applies to: ISchemaType Interface