ExchangeServiceCreateItems - метод
Creates multiple items in a single EWS call. Supported item classes are EmailMessage, Appointment, Contact, PostItem, Task and Item.
CreateItems does not support items that have unsaved attachments.
Пространство имён: Tessa.Exchange.WebServices.DataСборка: Tessa.Server (в Tessa.Server.dll) Версия: 3.6.0.22
public Task<ServiceResponseCollection<ServiceResponse>> CreateItems(
IEnumerable<Item> items,
FolderId parentFolderId,
MessageDisposition? messageDisposition,
SendInvitationsMode? sendInvitationsMode,
CancellationToken token = default
)
Public Function CreateItems (
items As IEnumerable(Of Item),
parentFolderId As FolderId,
messageDisposition As MessageDisposition?,
sendInvitationsMode As SendInvitationsMode?,
Optional token As CancellationToken = Nothing
) As Task(Of ServiceResponseCollection(Of ServiceResponse))
public:
Task<ServiceResponseCollection<ServiceResponse^>^>^ CreateItems(
IEnumerable<Item^>^ items,
FolderId^ parentFolderId,
Nullable<MessageDisposition> messageDisposition,
Nullable<SendInvitationsMode> sendInvitationsMode,
CancellationToken token = CancellationToken()
)
member CreateItems :
items : IEnumerable<Item> *
parentFolderId : FolderId *
messageDisposition : Nullable<MessageDisposition> *
sendInvitationsMode : Nullable<SendInvitationsMode> *
?token : CancellationToken
(* Defaults:
let _token = defaultArg token new CancellationToken()
*)
-> Task<ServiceResponseCollection<ServiceResponse>>
- items IEnumerableItem
- The items to create.
- parentFolderId FolderId
- The Id of the folder in which to place the newly created items. If null, items are created in their default folders.
- messageDisposition NullableMessageDisposition
- Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance.
- sendInvitationsMode NullableSendInvitationsMode
- Indicates if and how invitations should be sent for items of type Appointment. Required if items contains at least one Appointment instance.
- token CancellationToken (Optional)
-
TaskServiceResponseCollectionServiceResponseA ServiceResponseCollection providing creation results for each of the specified items.