derivedBy Property

MSXML 5.0 SDK

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

derivedBy Property

Returns a SCHEMADERIVATIONMEHOD constant. This constant indicates how the type definition was derived.

[Script]

Implementation syntax

var conDerivedBy = objISchemaType.derivedBy;

Parameters

None.

Return Values

conDerivedBy
For simple types, the derivedBy value can be one of the following:

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_LIST

SCHEMADERIVATIONMETHOD_UNION

For complex types, the derivedBy value can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

For any-type the derivedBy value is always as follows:

SCHEMADERIVATIONMETHOD_EMPTY

[Visual Basic]

Implementation syntax

conDerivedBy = objISchemaType.derivedBy

Parameters

None.

Return Values

conDerivedBy
For simple types, the derivedBy value can be one of the following:

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_LIST

SCHEMADERIVATIONMETHOD_UNION

For complex types, the derivedBy value can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

For any-type the derivedBy value is always as follows:

SCHEMADERIVATIONMETHOD_EMPTY

[C/C++]

Implementation syntax

HRESULT get_derivedBy(SCHEMADERIVATIONMETHOD* derivedBy);

Parameters

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

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_LIST

SCHEMADERIVATIONMETHOD_UNION

For complex types, the derivedBy value can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

For any-type the derivedBy value is always as follows:

SCHEMADERIVATIONMETHOD_EMPTY

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the derivedBy parameter returns 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

Primitive and Derived Data Types | Parts of Data Types

Applies to: ISchemaType Interface