Platform SDK: Exchange 2000 Server

Specifying Expected Content Classes

[This is preliminary documentation and subject to change.]

When you specify that a folder’s expected content class contains a particular content class, SQL queries run on the folder will return the properties for the specified content class and applications can use the content class appropriately.

[VBScript]
' Update the application folder to specify the schema scope

Const adModeReadWrite   = 3
Const adFailIfNotExists = -1

Dim strURL
strURL = "file://./backofficestorage/microsoft.com/vroot/myappfolders/"

Dim Rec
Set Rec = CreateObject("ADODB.Record")

Rec.Open strURL & "myappfolder/",,adModeReadWrite, adFailIfNotExists

Dim Flds
Set Flds = Rec.Fields
With Flds
  ' Specify which content classes are expected for this folder
   .Item("urn:schemas-microsoft-com:exch-data:expected-content-class").Value = _
     Array("urn:schemas-domain-tld:content-classes:mycontentclass")
   .Update
Rec.Close