Share via


ItemType Class

The ItemType class represents a generic item in the Exchange store.

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

Syntax

'Declaration
<SerializableAttribute> _
<DesignerCategoryAttribute("code")> _
<XmlIncludeAttribute(GetType(ReplyAllToItemType))> _
<XmlIncludeAttribute(GetType(PostItemType))> _
<XmlIncludeAttribute(GetType(TaskType))> _
<XmlIncludeAttribute(GetType(DistributionListType))> _
<XmlIncludeAttribute(GetType(ContactItemType))> _
<XmlIncludeAttribute(GetType(CalendarItemType))> _
<XmlIncludeAttribute(GetType(MessageType))> _
<XmlIncludeAttribute(GetType(MeetingMessageType))> _
<XmlIncludeAttribute(GetType(MeetingCancellationMessageType))> _
<XmlIncludeAttribute(GetType(MeetingResponseMessageType))> _
<XmlIncludeAttribute(GetType(MeetingRequestMessageType))> _
<XmlIncludeAttribute(GetType(ResponseObjectCoreType))> _
<XmlIncludeAttribute(GetType(ResponseObjectType))> _
<XmlIncludeAttribute(GetType(PostReplyItemBaseType))> _
<XmlIncludeAttribute(GetType(PostReplyItemType))> _
<XmlIncludeAttribute(GetType(DeclineItemType))> _
<XmlTypeAttribute(Namespace:="https://schemas.microsoft.com/exchange/services/2006/types")> _
<XmlIncludeAttribute(GetType(SuppressReadReceiptType))> _
<XmlIncludeAttribute(GetType(SmartResponseBaseType))> _
<XmlIncludeAttribute(GetType(SmartResponseType))> _
<XmlIncludeAttribute(GetType(CancelCalendarItemType))> _
<XmlIncludeAttribute(GetType(ForwardItemType))> _
<XmlIncludeAttribute(GetType(ReplyToItemType))> _
<XmlIncludeAttribute(GetType(WellKnownResponseObjectType))> _
<XmlIncludeAttribute(GetType(ReferenceItemResponseType))> _
<XmlIncludeAttribute(GetType(TentativelyAcceptItemType))> _
<XmlIncludeAttribute(GetType(AcceptItemType))> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<DebuggerStepThroughAttribute> _
<XmlIncludeAttribute(GetType(RemoveItemType))> _
Public Class ItemType
[SerializableAttribute] 
[DesignerCategoryAttribute("code")] 
[XmlIncludeAttribute(typeof(ReplyAllToItemType))] 
[XmlIncludeAttribute(typeof(PostItemType))] 
[XmlIncludeAttribute(typeof(TaskType))] 
[XmlIncludeAttribute(typeof(DistributionListType))] 
[XmlIncludeAttribute(typeof(ContactItemType))] 
[XmlIncludeAttribute(typeof(CalendarItemType))] 
[XmlIncludeAttribute(typeof(MessageType))] 
[XmlIncludeAttribute(typeof(MeetingMessageType))] 
[XmlIncludeAttribute(typeof(MeetingCancellationMessageType))] 
[XmlIncludeAttribute(typeof(MeetingResponseMessageType))] 
[XmlIncludeAttribute(typeof(MeetingRequestMessageType))] 
[XmlIncludeAttribute(typeof(ResponseObjectCoreType))] 
[XmlIncludeAttribute(typeof(ResponseObjectType))] 
[XmlIncludeAttribute(typeof(PostReplyItemBaseType))] 
[XmlIncludeAttribute(typeof(PostReplyItemType))] 
[XmlIncludeAttribute(typeof(DeclineItemType))] 
[XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types")] 
[XmlIncludeAttribute(typeof(SuppressReadReceiptType))] 
[XmlIncludeAttribute(typeof(SmartResponseBaseType))] 
[XmlIncludeAttribute(typeof(SmartResponseType))] 
[XmlIncludeAttribute(typeof(CancelCalendarItemType))] 
[XmlIncludeAttribute(typeof(ForwardItemType))] 
[XmlIncludeAttribute(typeof(ReplyToItemType))] 
[XmlIncludeAttribute(typeof(WellKnownResponseObjectType))] 
[XmlIncludeAttribute(typeof(ReferenceItemResponseType))] 
[XmlIncludeAttribute(typeof(TentativelyAcceptItemType))] 
[XmlIncludeAttribute(typeof(AcceptItemType))] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[DebuggerStepThroughAttribute] 
[XmlIncludeAttribute(typeof(RemoveItemType))] 
public class ItemType
[SerializableAttribute] 
[DesignerCategoryAttribute(L"code")] 
[XmlIncludeAttribute(typeof(ReplyAllToItemType))] 
[XmlIncludeAttribute(typeof(PostItemType))] 
[XmlIncludeAttribute(typeof(TaskType))] 
[XmlIncludeAttribute(typeof(DistributionListType))] 
[XmlIncludeAttribute(typeof(ContactItemType))] 
[XmlIncludeAttribute(typeof(CalendarItemType))] 
[XmlIncludeAttribute(typeof(MessageType))] 
[XmlIncludeAttribute(typeof(MeetingMessageType))] 
[XmlIncludeAttribute(typeof(MeetingCancellationMessageType))] 
[XmlIncludeAttribute(typeof(MeetingResponseMessageType))] 
[XmlIncludeAttribute(typeof(MeetingRequestMessageType))] 
[XmlIncludeAttribute(typeof(ResponseObjectCoreType))] 
[XmlIncludeAttribute(typeof(ResponseObjectType))] 
[XmlIncludeAttribute(typeof(PostReplyItemBaseType))] 
[XmlIncludeAttribute(typeof(PostReplyItemType))] 
[XmlIncludeAttribute(typeof(DeclineItemType))] 
[XmlTypeAttribute(Namespace=L"https://schemas.microsoft.com/exchange/services/2006/types")] 
[XmlIncludeAttribute(typeof(SuppressReadReceiptType))] 
[XmlIncludeAttribute(typeof(SmartResponseBaseType))] 
[XmlIncludeAttribute(typeof(SmartResponseType))] 
[XmlIncludeAttribute(typeof(CancelCalendarItemType))] 
[XmlIncludeAttribute(typeof(ForwardItemType))] 
[XmlIncludeAttribute(typeof(ReplyToItemType))] 
[XmlIncludeAttribute(typeof(WellKnownResponseObjectType))] 
[XmlIncludeAttribute(typeof(ReferenceItemResponseType))] 
[XmlIncludeAttribute(typeof(TentativelyAcceptItemType))] 
[XmlIncludeAttribute(typeof(AcceptItemType))] 
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
[DebuggerStepThroughAttribute] 
[XmlIncludeAttribute(typeof(RemoveItemType))] 
public ref class ItemType
/** @attribute SerializableAttribute() */ 
/** @attribute DesignerCategoryAttribute("code") */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ReplyAllToItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.PostItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.TaskType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.DistributionListType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ContactItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.CalendarItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.MessageType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.MeetingMessageType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.MeetingCancellationMessageType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.MeetingResponseMessageType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.MeetingRequestMessageType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ResponseObjectCoreType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ResponseObjectType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.PostReplyItemBaseType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.PostReplyItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.DeclineItemType) */ 
/** @attribute XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.SuppressReadReceiptType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.SmartResponseBaseType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.SmartResponseType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.CancelCalendarItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ForwardItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ReplyToItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.WellKnownResponseObjectType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.ReferenceItemResponseType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.TentativelyAcceptItemType) */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.AcceptItemType) */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
/** @attribute DebuggerStepThroughAttribute() */ 
/** @attribute XmlIncludeAttribute(ExchangeWebServices.RemoveItemType) */ 
public class ItemType
SerializableAttribute 
DesignerCategoryAttribute("code") 
XmlIncludeAttribute(ExchangeWebServices.ReplyAllToItemType) 
XmlIncludeAttribute(ExchangeWebServices.PostItemType) 
XmlIncludeAttribute(ExchangeWebServices.TaskType) 
XmlIncludeAttribute(ExchangeWebServices.DistributionListType) 
XmlIncludeAttribute(ExchangeWebServices.ContactItemType) 
XmlIncludeAttribute(ExchangeWebServices.CalendarItemType) 
XmlIncludeAttribute(ExchangeWebServices.MessageType) 
XmlIncludeAttribute(ExchangeWebServices.MeetingMessageType) 
XmlIncludeAttribute(ExchangeWebServices.MeetingCancellationMessageType) 
XmlIncludeAttribute(ExchangeWebServices.MeetingResponseMessageType) 
XmlIncludeAttribute(ExchangeWebServices.MeetingRequestMessageType) 
XmlIncludeAttribute(ExchangeWebServices.ResponseObjectCoreType) 
XmlIncludeAttribute(ExchangeWebServices.ResponseObjectType) 
XmlIncludeAttribute(ExchangeWebServices.PostReplyItemBaseType) 
XmlIncludeAttribute(ExchangeWebServices.PostReplyItemType) 
XmlIncludeAttribute(ExchangeWebServices.DeclineItemType) 
XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") 
XmlIncludeAttribute(ExchangeWebServices.SuppressReadReceiptType) 
XmlIncludeAttribute(ExchangeWebServices.SmartResponseBaseType) 
XmlIncludeAttribute(ExchangeWebServices.SmartResponseType) 
XmlIncludeAttribute(ExchangeWebServices.CancelCalendarItemType) 
XmlIncludeAttribute(ExchangeWebServices.ForwardItemType) 
XmlIncludeAttribute(ExchangeWebServices.ReplyToItemType) 
XmlIncludeAttribute(ExchangeWebServices.WellKnownResponseObjectType) 
XmlIncludeAttribute(ExchangeWebServices.ReferenceItemResponseType) 
XmlIncludeAttribute(ExchangeWebServices.TentativelyAcceptItemType) 
XmlIncludeAttribute(ExchangeWebServices.AcceptItemType) 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
DebuggerStepThroughAttribute 
XmlIncludeAttribute(ExchangeWebServices.RemoveItemType) 
public class ItemType

Remarks

The ItemType class is the base type for the TaskType, CalendarItemType, ContactItemType, and MessageType classes.

Starting with Exchange Server 2007 Service Pack 1 (SP1) with Update Rollup 4 (RU4) applied, MessageType objects represent e-mail messages and all other items that are not strongly typed by the Exchange Web Services (EWS) schema. This behavior is applied when the Exchange2007_SP1 version header is specified. Items such as IPM.Sharing and IPM.InfoPath are returned as MessageType objects. Exchange 2007 SP1 with RU4 applied and later versions will not return the base ItemType object in responses.

Inheritance Hierarchy

System.Object
  ExchangeWebServices.ItemType
     Derived Classes

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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