ISchemaType Interface

MSXML 5.0 SDK

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

ISchemaType Interface

Provides access to basic type information, and to a DOM representation of the type object. You obtain an ISchemaType object by using the types property of the ISchema interface, the type property of the ISchemaAttribute interface, and the type property of the ISchemaElement interface.

Properties

baseTypes Retrieves the collection of the base-types of the type.
derivedBy Retrieves the method by which the type definition was derived.
enumeration Retrieves the enumeration facet of the restriction.
final Retrieves the final value of the type definition.
fractionDigits Retrieves the fractionDigits facet of the restriction.
length Retrieves the length facet of the restriction.
maxExclusive Retrieves the maxExclusive facet of the restriction.
maxInclusive Retrieves the maxInclusive facet of the restriction.
maxLength Retrieves the maxLength facet of the restriction.
minExclusive Retrieves the minExclusive facet of the restriction.
minInclusive Retrieves the minInclusive facet of the restriction.
minLength Retrieves the minLength facet of the restriction.
patterns Retrieves a string collection that contains the pattern facets of the restriction.
totalDigits Retrieves the totalDigits facet of the restriction.
variety Retrieves the value of the variety attribute for the type definition.
whiteSpace Retrieves the whitespace facet of the restriction.

Methods

isValid Checks whether the value that has been passed in is a valid instance of this type.

[Script]

Implementation Syntax

var oSchemaTypes = oSchema.types;
var oSchemaType = oSchemaTypes.item(index)

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.
[Visual Basic]

Implementation Syntax

Set oSchemaTypes = oSchema.types
Set oSchemaType = oSchemaTypes.item(index)

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.
[C/C++]

Implementation Syntax

HRESULT get_types(ISchemaItemCollection** types);
HRESULT types->get_item(long index, ISchemaType** type);

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.

Versioning

MSXML 4.0 and later

Requirements

[Visual Basic, C/C++]

Implementation: msxml5.dll, msxml2.lib

[C/C++]

Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl

Inheritance: Inherits from the ISchemaItem interface.

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

ISchema types Property | ISchemaAttribute type Property | ISchemaElement type Property | Parts of Data Types | Data Type Facets | SOM Reference