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.5.0.19
Синтаксис 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
- Тип: System.Collections.GenericIEnumerableItem
The items to create. - parentFolderId
- Тип: Tessa.Exchange.WebServices.DataFolderId
The Id of the folder in which to place the newly created items. If null, items are created in their default folders. - messageDisposition
- Тип: SystemNullableMessageDisposition
Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance. - sendInvitationsMode
- Тип: SystemNullableSendInvitationsMode
Indicates if and how invitations should be sent for items of type Appointment. Required if items contains at least one Appointment instance. - token (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskServiceResponseCollectionServiceResponseA ServiceResponseCollection providing creation results for each of the specified items.
См. также