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

contentType Property

Returns an integer that corresponds to a declared constant value of the SCHEMACONTENTTYPE enumeration. See XML SOM Enumerated Constants for the integer values.

The following table lists the four possible content types and their descriptions.

SCHEMACONTENTTYPE value Description
SCHEMACONTENTTYPE_EMPTY Type does not contain elements, text, or attributes.
SCHEMACONTENTTYPE_TEXTONLY Type contains only text. No elements or attributes.
SCHEMACONTENTTYPE_ELEMENTONLY Type contains only element declarations.
SCHEMACONTENTTYPE_MIXED Type contains elements, attributes, or text.

[Script]

Implementation Syntax

var conContentType = oISchemaComplexType.contentType;

Parameters

None.

Return Values

conContentType
An integer. The contentType of the complexType.
[Visual Basic]

Implementation Syntax

conContentType = oISchemaComplexType.contentType

Parameters

None.

Return Values

conContentType
An integer. The contentType of the complexType.
[C/C++]

Implementation Syntax

HERESULT get_contentType (SCHEMACONTENTTYPE* contentType);

Parameters

contentType [out,retval]
An integer. The contentType of the complexType.

Return Values

S_OK
The value returned if successful.
E_FAIL
The value returned if something 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: ISchemaComplexType Interface