This documentation is archived and is not being maintained.
The DistinguishedFolderIdNameType enumeration identifies well-known Microsoft Exchange Server 2007 folders that can be referenced by name.
public enum DistinguishedFolderIdNameType
|calendar||Represents the Calendar folder.|
|contacts||Represents the Contacts folder.|
|deleteditems||Represents the Deleted Items folder.|
|drafts||Represents the Drafts folder.|
|inbox||Represents the Inbox folder.|
|journal||Represents the Journal folder.|
|notes||Represents the Notes folder.|
|outbox||Represents the Outbox folder.|
|sentitems||Represents the Sent Items folder.|
|tasks||Represents the Tasks folder.|
|msgfolderroot||Represents the message folder root.|
|root||Represents the root of the mailbox.|
|junkemail||Represents the Junk E-mail folder.|
|searchfolders||Represents the Search Folders folder. This is also an alias for the Finder folder.|
|voicemail||Represents the Voice Mail folder.|
The DistinguishedFolderIdNameType enumeration values act as aliases for default folders in a mailbox. All folders that are identified by this enumeration can also be identified by a folder identifier.
The following code example from the Creating Folders (Exchange Web Services) topic shows you how the DistinguishedFolderIdNameType enumeration is used to identify a folder in a mailbox.
DistinguishedFolderIdType distFolder = new DistinguishedFolderIdType();
distFolder.Id = DistinguishedFolderIdNameType.inbox;
TargetFolderIdType targetID = new TargetFolderIdType();
targetID.Item = distFolder;