Partager via


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)

Syntax

'Declaration
<SerializableAttribute> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<XmlTypeAttribute(Namespace:="https://schemas.microsoft.com/exchange/services/2006/types")> _
Public Enumeration DistinguishedFolderIdNameType
[SerializableAttribute] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types")] 
public enum DistinguishedFolderIdNameType
[SerializableAttribute] 
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
[XmlTypeAttribute(Namespace=L"https://schemas.microsoft.com/exchange/services/2006/types")] 
public enum class DistinguishedFolderIdNameType
/** @attribute SerializableAttribute() */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
/** @attribute XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") */ 
public enum DistinguishedFolderIdNameType
SerializableAttribute 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") 
public enum DistinguishedFolderIdNameType

Members

Member name Description
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.
junkemail Represents the Junk E-mail folder.
msgfolderroot Represents the message folder root.
notes Represents the Notes folder.
outbox Represents the Outbox folder.
publicfoldersroot  
root Represents the root of the mailbox.
searchfolders Represents the Search Folders folder. This is also an alias for the Finder folder.
sentitems Represents the Sent Items folder.
tasks Represents the Tasks folder.
voicemail Represents the Voice Mail folder.

Remarks

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.

Example

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;

Platforms

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)

See Also