ISchemaType Interface

 

[This feature was only implemented for MSXML 6.0.]

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.

baseTypesRetrieves the collection of the base-types of the type.
derivedByRetrieves the method by which the type definition was derived.
enumerationRetrieves the enumeration facet of the restriction.
finalRetrieves the final value of the type definition.
fractionDigitsRetrieves the fractionDigits facet of the restriction.
lengthRetrieves the length facet of the restriction.
maxExclusiveRetrieves the maxExclusive facet of the restriction.
maxInclusiveRetrieves the maxInclusive facet of the restriction.
maxLengthRetrieves the maxLength facet of the restriction.
minExclusiveRetrieves the minExclusive facet of the restriction.
minInclusiveRetrieves the minInclusive facet of the restriction.
minLengthRetrieves the minLength facet of the restriction.
patternsRetrieves a string collection that contains the pattern facets of the restriction.
totalDigitsRetrieves the totalDigits facet of the restriction.
varietyRetrieves the value of the variety attribute for the type definition.
whiteSpaceRetrieves the whitespace facet of the restriction.
isValidChecks whether the value that has been passed in is a valid instance of this type.
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.

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.

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.

Implementation: msxml6.dll, msxml6.lib

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

Inheritance: Inherits from the ISchemaItem interface.

Implemented in: MSXML 6.0

types Property
type Property (ISchemaAttribute)
type Property (ISchemaElement)
Parts of Data Types
Data Type Facets
SOM Reference

Show: