Export (0) Print
Expand All
Expand Minimize

DistinguishedFolderIdNameType Enumeration

The DistinguishedFolderIdNameType enumeration identifies well-known Microsoft Exchange Server 2007 folders that can be referenced by name.

Namespace: ExchangeWebServices
Assembly: EWS (in ews.dll)

[SerializableAttribute] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types")] 
public enum DistinguishedFolderIdNameType
/** @attribute SerializableAttribute() */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
/** @attribute XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types") */ 
public enum DistinguishedFolderIdNameType
SerializableAttribute 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types") 
public enum DistinguishedFolderIdNameType

Member nameDescription
calendarRepresents the Calendar folder.
contactsRepresents the Contacts folder.
deleteditemsRepresents the Deleted Items folder.
draftsRepresents the Drafts folder.
inboxRepresents the Inbox folder.
journalRepresents the Journal folder.
junkemailRepresents the Junk E-mail folder.
msgfolderrootRepresents the message folder root.
notesRepresents the Notes folder.
outboxRepresents the Outbox folder.
publicfoldersroot 
rootRepresents the root of the mailbox.
searchfoldersRepresents the Search Folders folder. This is also an alias for the Finder folder.
sentitemsRepresents the Sent Items folder.
tasksRepresents the Tasks folder.
voicemailRepresents 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;

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)
Show:
© 2015 Microsoft