/// <summary> /// Binds to multiple items in a single call to EWS. /// </summary> /// <param name="itemIds">The Ids of the items to bind to.</param> /// <param name="propertySet">The set of properties to load.</param> /// <param name="anchorMailbox">The SmtpAddress of mailbox that hosts all items we need to bind to</param> /// <param name="errorHandling">Type of error handling to perform.</param> /// <returns>A ServiceResponseCollection providing results for each of the specified item Ids.</returns> private Task <ServiceResponseCollection <GetItemResponse> > InternalBindToItemsAsync( IEnumerable <ItemId> itemIds, PropertySet propertySet, string anchorMailbox, ServiceErrorHandling errorHandling) { GetItemRequest request = new GetItemRequest(this, errorHandling); request.ItemIds.AddRange(itemIds); request.PropertySet = propertySet; request.AnchorMailbox = anchorMailbox; return(request.ExecuteAsync()); }
/// <summary> /// Initializes a new instance of the <see cref="MarkAllItemsAsReadRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal MarkAllItemsAsReadRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="MoveCopyFolderRequest<TResponse>"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal MoveCopyFolderRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="GetClientAccessTokenRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> GetClientAccessTokenRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="FindRequest<TResponse>"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal FindRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="MoveFolderRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> MoveFolderRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="ApplyConversationActionRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode">Indicates how errors should be handled.</param> ApplyConversationActionRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="UpdateItemRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal UpdateItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="MarkAllItemsAsReadRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> MarkAllItemsAsReadRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="MarkAsJunkRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> MarkAsJunkRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="CreateResponseObjectRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal CreateResponseObjectRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="SearchMailboxesRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> SearchMailboxesRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="CopyItemRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> CopyItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="ConvertIdRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> ConvertIdRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)
/// <summary> /// Initializes a new instance of the <see cref="GetConversationItemsRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode">Error handling mode.</param> internal GetConversationItemsRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="GetClientAccessTokenRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal GetClientAccessTokenRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="SearchMailboxesRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal SearchMailboxesRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="MarkAsJunkRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal MarkAsJunkRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="ApplyConversationActionRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode">Indicates how errors should be handled.</param> internal ApplyConversationActionRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="GetItemRequestForLoad"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal GetItemRequestForLoad(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="DeleteFolderRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal DeleteFolderRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="CreateItemRequestBase<TServiceObject, TResponse>"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> protected CreateItemRequestBase(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="DeleteAttachmentRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal DeleteAttachmentRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="GetFolderRequestBase<TResponse>"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> protected GetFolderRequestBase(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service, errorHandlingMode) { }
/// <summary> /// Initializes a new instance of the <see cref="MultiResponseServiceRequest<TResponse>"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode"> Indicates how errors should be handled.</param> internal MultiResponseServiceRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : base(service) { this.errorHandlingMode = errorHandlingMode; }
/// <summary> /// Initializes a new instance of the <see cref="GetConversationItemsRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="errorHandlingMode">Error handling mode.</param> GetConversationItemsRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) : super(service, errorHandlingMode)