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

type Property

Returns an ISchemaType object. This object contains type information about the attribute item being queried. Use the ISchemaType interface to obtain further information about the attribute's type object. When the value returned for the type property is SCHEMAUSE_PROHIBITED, the value of the ISchemaItem.itemType property of the attribute is SOMITEM_DATATYPE_ANYTYPE.

Example

The following is an example of the type definition in a schema.

<schema>
   <attribute name="someAttribute" type = "xsd:string"/>
   <complexType name="newitemtype">
   </complexType>
</schema>
[Script]

Implementation Syntax

var oType = oISchemaAttribute.type;

Parameters

None.

Return Values

oType
An object. The type of the attribute.
[Visual Basic]

Implementation Syntax

Set oType = oISchemaAttribute.type

Parameters

None.

Return Values

oType
An object. The type of the attribute.
[C/C++]

Implementation Syntax

HRESULT get_type(ISchemaType** type);

Parameters

type [out,retval]
An object. A simple type definition.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the type parameter is NULL.
E_FAIL
The value returned if something else is wrong.

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

ISchemaType Interface | Simple Type Definitions

Applies to: ISchemaAttribute Interface