Search folders are created in much the same way as regular folders. The distinguishing difference between search folders and regular folders is that search folders have a property that defines the restriction used by the search folder, the traversal scope for that restriction, and the root folders to apply that restriction to. The SearchFolderType introduces the SearchParameters property, which describes how the search folder searches the Mailbox.
The SearchParameters property is defined by the SearchParametersType in types.xsd, as shown in Example 15-20.
Example 15-20. SearchParametersType as defined in types.xsd
<xs:complexType name="SearchParametersType"> <xs:sequence> <xs:element name="Restriction" ...