Partager via


MessageDispositionType Enumeration

The MessageDispositionType enumeration specifies how a message item is handled after it is created or updated.

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 MessageDispositionType
[SerializableAttribute] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types")] 
public enum MessageDispositionType
[SerializableAttribute] 
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
[XmlTypeAttribute(Namespace=L"https://schemas.microsoft.com/exchange/services/2006/types")] 
public enum class MessageDispositionType
/** @attribute SerializableAttribute() */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
/** @attribute XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") */ 
public enum MessageDispositionType
SerializableAttribute 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") 
public enum MessageDispositionType

Members

Member name Description
SaveOnly When used in the CreateItemType, the e-mail message item is saved in the folder that is specified by the SavedItemFolderId property, or in the Sent Items folder if SavedItemFolderId is not specified. Messages can be sent later by using the SendItem method on an ExchangeServiceBinding object. An item identifier is returned in this case.
SendAndSaveCopy When used in the CreateItemType, the e-mail message item is sent and a copy is saved in the folder that is specified by the SavedItemFolderId property, or in the Sent Items folder if SavedItemFolderId is not specified. An item identifier is not returned in this case.
SendOnly When used in the CreateItemType, the e-mail message item is sent but no copy is saved. An item identifier is not returned in this case.

Remarks

When the MessageDispositionType is used for the CreateItemType, it only applies to e-mail messages. When the MessageDispositionType is used for the UpdateItemType type, it can apply to e-mail messages and meeting messages, including meeting cancellations, meeting requests, and meeting responses. This enumeration is not used for response objects.

CreateItem responses return an ItemId when MessageDispositionType is set to SaveOnly.

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)