ExchangeService.CreateItems(IEnumerable<Item>, FolderId, Nullable<MessageDisposition>, Nullable<SendInvitationsMode>) ExchangeService.CreateItems(IEnumerable<Item>, FolderId, Nullable<MessageDisposition>, Nullable<SendInvitationsMode>) ExchangeService.CreateItems(IEnumerable<Item>, FolderId, Nullable<MessageDisposition>, Nullable<SendInvitationsMode>) Method

Definition

Creates multiple items in a single Exchange Web Services (EWS) call.

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::ServiceResponse ^> ^ CreateItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::Item ^> ^ items, Microsoft::Exchange::WebServices::Data::FolderId ^ parentFolderId, Nullable<Microsoft::Exchange::WebServices::Data::MessageDisposition> messageDisposition, Nullable<Microsoft::Exchange::WebServices::Data::SendInvitationsMode> sendInvitationsMode);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.ServiceResponse> CreateItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.Item> items, Microsoft.Exchange.WebServices.Data.FolderId parentFolderId, Nullable<Microsoft.Exchange.WebServices.Data.MessageDisposition> messageDisposition, Nullable<Microsoft.Exchange.WebServices.Data.SendInvitationsMode> sendInvitationsMode);
Public Function CreateItems (items As IEnumerable(Of Item), parentFolderId As FolderId, messageDisposition As Nullable(Of MessageDisposition), sendInvitationsMode As Nullable(Of SendInvitationsMode)) As ServiceResponseCollection(Of ServiceResponse)

Parameters

items
IEnumerable<Item>

The items to be created.

parentFolderId
FolderId FolderId FolderId

The ID of the folder in which the newly created items are to be placed. If this parameter is a null reference (Nothing in Visual Basic), items are created in their default folders.

messageDisposition
Nullable<MessageDisposition>

One of the enumeration values that specifies the disposition mode for EmailMessage objects. This parameter is required for items that contain at least one EmailMessage instance.

sendInvitationsMode
Nullable<SendInvitationsMode>

One of the enumeration values that specifies whether and how invitations should be sent for items of type Appointment. This parameter is required for items that contain at least one Appointment instance.

Returns

A collection of creation results for each of the specified items.

Remarks

The CreateItems(IEnumerable<Item>, FolderId, Nullable<MessageDisposition>, Nullable<SendInvitationsMode>) method supports the EmailMessage, Appointment, Contact, PostItem, Task, and Item types. This method does not support items that have unsaved attachments.

Applies to