Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Instead of querying a table as you would on a database, you issue a query on a scope. A scope is the set of resources specified by a URL to be searched. A scope is typically specified as folders, subfolders, or virtual roots. You can specify a deep traversal to get a folder’s subfolders or a shallow traversal of just the folder itself.
For example, to find all child folders contained within a particular folder, provide the following statement:
SELECT "DAV:href", "DAV:displayname" FROM scope('shallow traversal of """ strURL """') WHERE "DAV:isfolder" = True and "DAV:ishidden" = False
This query returns all non-hidden folders in the folder specified by a URL string variable (strURL).
Specifying a scoped FROM clause is not required, but it defaults to a shallow traversal of the folder. A scoped FROM clause defaults to a deep traversal of the folder unless specie as “shallow.”