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

itemType Property

Returns a schema type from the SOMITEMTYPE constants list. The itemType property is used to determine which SOM interface is used to get more information about the item being queried. The type will be one of the following values.

Enumerated Type Value DEC Value HEX Value
SOMITEM_SCHEMA 4096 0x1000
SOMITEM_ATTRIBUTE 4097 0x1001
SOMITEM_ATTRIBUTEGROUP 4098 0x1002
SOMITEM_NOTATION 4099 0x1003
Identity Constraints DEC Value HEX Value
SOMITEM_IDENTITYCONSTRAINT 4352 0x1100
SOMITEM_KEY 4353 0x1101
SOMITEM_KEYREF 4354 0x1102
SOMITEM_UNIQUE 4355 0x1103
Types DEC Value HEX Value
SOMITEM_ANYTYPE 8192 0x2000// also type mask
SOMITEM_DATATYPE 8448 0x2100// built-in type mask
SOMITEM_DATATYPE_ANYTYPE 8449 0x2101
SOMITEM_DATATYPE_ANYURI 8450 0x2102
SOMITEM_DATATYPE_BASE64BINARY 8451 0x2103
SOMITEM_DATATYPE_BOOLEAN 8452 0x2104
SOMITEM_DATATYPE_BYTE 8453 0x2105
SOMITEM_DATATYPE_DATE 8454 0x2106
SOMITEM_DATATYPE_DATETIME 8455 0x2107
SOMITEM_DATATYPE_DAY 8456 0x2108
SOMITEM_DATATYPE_DECIMAL 8457 0x2109
SOMITEM_DATATYPE_DOUBLE 8458 0x210A
SOMITEM_DATATYPE_DURATION 8459 0x210B
SOMITEM_DATATYPE_ENTITIES 8460 0x210C
SOMITEM_DATATYPE_ENTITY 8461 0x210D
SOMITEM_DATATYPE_FLOAT 8462 0x210E
SOMITEM_DATATYPE_HEXBINARY 8463 0x210F
SOMITEM_DATATYPE_ID 8464 0x2110
SOMITEM_DATATYPE_IDREF 8465 0x2111
SOMITEM_DATATYPE_IDREFS 8466 0x2112
SOMITEM_DATATYPE_INT 8467 0x2113
SOMITEM_DATATYPE_INTEGER 8468 0x2114
SOMITEM_DATATYPE_LANGUAGE 8469 0x2115
SOMITEM_DATATYPE_LONG 8470 0x2116
SOMITEM_DATATYPE_MONTH 8471 0x2117
SOMITEM_DATATYPE_MONTHDAY 8472 0x2118
SOMITEM_DATATYPE_NAME 8473 0x2119
SOMITEM_DATATYPE_NCNAME 8474 0x211A
SOMITEM_DATATYPE_NEGATIVEINTEGER 8475 0x211B
SOMITEM_DATATYPE_NMTOKEN 8476 0x211C
SOMITEM_DATATYPE_NMTOKENS 8477 0x211D
SOMITEM_DATATYPE_NONNEGATIVEINTEGER 8478 0x211E
SOMITEM_DATATYPE_NONPOSITIVEINTEGER 8479 0x211F
SOMITEM_DATATYPE_NORMALIZEDSTRING 8480 0x2120
SOMITEM_DATATYPE_NOTATION 8481 0x2121
SOMITEM_DATATYPE_POSITIVEINTEGER 8482 0x2122
SOMITEM_DATATYPE_QNAME 8483 0x2123
SOMITEM_DATATYPE_SHORT 8484 0x2124
SOMITEM_DATATYPE_STRING 8485 0x2125
SOMITEM_DATATYPE_TIME 8486 0x2126
SOMITEM_DATATYPE_TOKEN 8487 0x2127
SOMITEM_DATATYPE_UNSIGNEDBYTE 8488 0x2128
SOMITEM_DATATYPE_UNSIGNEDINT 8489 0x2129
SOMITEM_DATATYPE_UNSIGNEDLONG 8490 0x212A
SOMITEM_DATATYPE_UNSIGNEDSHORT 8491 0x212B
SOMITEM_DATATYPE_YEAR 8492 0x212C
SOMITEM_DATATYPE_YEARMONTH 8493 0x212D
SOMITEM_SIMPLETYPE 8704 0x2200
SOMITEM_COMPLEXTYPE 9216 0x2400
SOMITEM_PARTICLE 16384 0x4000 // particle mask
SOMITEM_ANY 16385 0x4001
SOMITEM_ANYATTRIBUTE 16386 0x4002
SOMITEM_ELEMENT 16387 0x4003
SOMITEM_GROUP 16640 0x4100 // group mask
SOMITEM_ALL 16641 0x4101
SOMITEM_CHOICE 16642 0x4102
SOMITEM_SEQUENCE 16643 0x4103
SOMITEM_EMPTYPARTICLE 16644 0x4104
SOMITEM_NULL 2048 0x0800 // null items
SOMITMEM_NULL_TYPE 10240 0x2800
SOMITEM_NULL_ANY 18433 0x4801
SOMITEM_NULL_ANYATTRIBUTE 18434 0x4802
SOMITEM_NULL_ELEMENT 18435 0x4803

[Script]

Implementation Syntax

var conType = oSchemaItem.itemType;

Parameters

None.

Return Values

conType
An Enum of type SOMITEMTYPE. The type of the ISchemaItem object.
[Visual Basic]

Implementation Syntax

conType = oSchemaItem.itemType

Parameters

None.

Return Values

conType
An Enum of type SOMITEMTYPE. The type of the ISchemaItem object.
[C/C++]

Implementation Syntax

HRESULT get_itemType(SOMITEMTYPE* itemType);

Parameters

itemType [out,retval]
An Enum of type SOMITEMTYPE. The type of the ISchemaItem object.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the itemType parameter is NULL.
E_FAIL
The value returned 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

Applies to: ISchemaItem Interface