Share via


expected-content-class Field

Topic Last Modified: 2006-06-13

An array of names indicating the expected content classes of items within a folder.

Full Name

urn:schemas-microsoft-com:exch-data:expected-content-class

Content Class

urn:content-classes:contentclassdef

urn:content-classes:folder

Variant Subtype

 Array of Variants (Strings)

 VT_ARRAY | VT_VARIANT (VT_BSTR)

OLE DB Type

DBTYPE_ARRAY | DBTYPE_VARIANT

Remarks

The expected-content-class property is an array (list) of content class names that are designated as expected for items in the folder. This property does not itself define these content class and does not define in what folder or folders the associated content class and property definition items are kept. Applications search for these definitions within the folder's schema scope. Additionally, the expected-content-class property does not impose a restriction on what the value of an item's content class can be; it simply designates the list of names as expected for items within the folder.

One example use of the expected-content-class property is controlling which properties are returned for items when you execute The SELECT * Statement on a folder: only the combination of properties defined by all of the expected content classes are returned for each item in the resulting OLE DB Rowset or Microsoft® ActiveX® Data Objects (ADO) Recordset.

The expected-content-class Property, schema-collection-ref Field and baseschema Field are used together to define a folder's schema. Folders can contain separate content class and property definitions specific to a particular application. For more information about folder schemas, see Schema.