[This feature was only implemented for MSXML 6.0.]
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.
The following is an example of the type definition in a schema.
<schema>
<attribute name="someAttribute" type = "xsd:string"/>
<complexType name="newitemtype">
</complexType>
</schema>
JScript Syntax
var oType = oISchemaAttribute.type;
Parameters
None.
Return Values
oType
An object. The type of the attribute.
Example
The following snippet is taken from the Walk the SOM sample application. In this snippet, the type property is retrieved from the ISchemaAttribute object.
If oAttr.type.name <> "" Then
printAttr = printAttr + " type='" + printName(oAttr.type) + "'"
End If
Visual Basic Syntax
Set oType = oISchemaAttribute.type
Parameters
None.
Return Values
oType
An object. The type of the attribute.
Visual Basic 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.
Versioning
Implemented in: MSXML 6.0