Share via


variety Property

 

[This feature was only implemented for MSXML 6.0.]

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

JScript 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 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++ 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.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaType Interface

See Also

Parts of Data Types