ExchangeService class
Represents a binding to the Exchange Web Services.
Properties
-
AcceptGzipEncoding
↔ bool
-
Gets or sets a value indicating whether GZip compression encoding should be accepted.
getter/setter pairinherited
-
ClientRequestId
↔ String?
-
Gets or sets the request id for the request.
getter/setter pairinherited
-
ConnectionGroupName
↔ String?
-
Gets or sets the name of the connection group for the request.
getter/setter pairinherited
-
CookieContainer
↔ CookieContainer
-
Gets or sets the cookie container.
getter/setter pairinherited
-
Credentials
↔ ExchangeCredentials?
-
Gets or sets the credentials used to authenticate with the Exchange Web Services. Setting the Credentials property
automatically sets the UseDefaultCredentials to false.
getter/setter pairinherited
-
DateTimePrecision
↔ DateTimePrecision
-
Gets or sets the DateTime precision for DateTime values returned from Exchange Web Services.
getter/setter pairinherited
-
EnableScpLookup
↔ bool
-
Gets the time zone this service is scoped to.
getter/setter pair
-
Exchange2007CompatibilityMode
↔ bool
-
Gets or sets a value indicating whether Exchange2007 compatibility mode is enabled.
getter/setter pair
-
exchange2007CompatibilityMode
↔ bool
-
Exchange 2007 compatibility mode flag. (Off by default)
getter/setter pair
-
FileAttachmentContentHandler
↔ IFileAttachmentContentHandler?
-
Gets or sets the preferred culture for messages returned by the Exchange Web Services.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
Gets or sets a flag to indicate whether the client requires the server side to return the request id.
no setterinherited
-
Gets a collection of HTTP headers from the last response.
no setterinherited
-
HttpWebRequestFactory
↔ IEwsHttpWebRequestFactory
-
Gets or sets the HTTP web request factory.
getter/setter pairinherited
-
ImpersonatedUserId
↔ ImpersonatedUserId?
-
Gets or sets the Id of the user that EWS should impersonate.
getter/setter pairinherited
-
KeepAlive
↔ bool
-
Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive
getter/setter pairinherited
-
ManagementRoles
↔ ManagementRoles?
-
getter/setter pairinherited
-
Occurs when the http response headers of a server call is captured.
getter/setter pairinherited
-
Provides an event that applications can implement to emit custom SOAP headers in requests that are sent to Exchange.
getter/setter pairinherited
-
PreAuthenticate
↔ bool
-
Gets or sets a value that indicates whether HTTP pre-authentication should be performed.
getter/setter pairinherited
-
PrivilegedUserId
↔ PrivilegedUserId?
-
Gets or sets the Id of the user that EWS should open his/her mailbox with privileged logon type.
getter/setter pairinherited
-
RequestedServerVersion
→ ExchangeVersion
-
Gets the requested server version.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
SendClientLatencies
↔ bool
-
Gets or sets a value indicating whether client latency info is push to server.
getter/setter pairinherited
-
ServerInfo
↔ ExchangeServerInfo?
-
Gets information associated with the server that processed the last request.
Will be null if no requests have been processed.
getter/setter pairinherited
-
For testing: suppresses generation of the SOAP version header.
getter/setter pairinherited
-
TargetServerVersion
↔ String?
-
Gets or sets the target server version string (newer than Exchange2013).
getter/setter pair
-
Timeout
↔ int
-
Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds.
Defaults to 100000.
getter/setter pairinherited
-
TimeZone
↔ TimeZone?
-
Gets the time zone this service is scoped to.
getter/setter pairinherited
-
TimeZoneDefinition
→ TimeZoneDefinition
-
Gets a time zone definition generated from the time zone info to which this service is scoped.
no setterinherited
-
TraceEnabled
↔ bool
-
Gets or sets a value indicating whether tracing is enabled.
getter/setter pairinherited
-
TraceEnablePrettyPrinting
↔ bool
-
Gets or sets a value indicating whether trace output is pretty printed.
getter/setter pair
-
TraceFlags
↔ List<TraceFlags>
-
Gets or sets the trace flags.
getter/setter pairinherited
-
TraceListener
↔ ITraceListener
-
Gets or sets the trace listener.
getter/setter pairinherited
-
Url
↔ Uri?
-
Gets or sets the URL of the Exchange Web Services.
getter/setter pair
-
UseDefaultCredentials
↔ bool
-
Gets or sets a value indicating whether the credentials of the user currently logged into Windows should be used to
authenticate with the Exchange Web Services. Setting UseDefaultCredentials to true automatically sets the Credentials
property to null.
getter/setter pairinherited
-
UserAgent
↔ String
-
Gets or sets the user agent.
getter/setter pairinherited
-
WebProxt
← IWebProxy
-
no getterinherited
-
WebProxy
→ IWebProxy?
-
Gets or sets the web proxy that should be used when sending requests to EWS.
Set this property to null to use the default web proxy.
no setterinherited
Methods
-
AddDelegates(Mailbox mailbox, MeetingRequestsDeliveryScope? meetingRequestsDeliveryScope, Iterable<DelegateUser> delegateUsers)
→ Future<List<DelegateUserResponse>>
-
Adds delegates to a specific mailbox. Calling this method results in a call to EWS.
-
AdjustServiceUriFromCredentials(Uri uri)
→ Uri
-
Adjusts the service URI based on the current type of credentials.
-
ApplyConversationAction(ConversationActionType actionType, Iterable<ConversationId> conversationIds, bool processRightAway, StringList? categories, bool enableAlwaysDelete, FolderId? destinationFolderId, ServiceErrorHandling errorHandlingMode)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Applies ConversationAction on the specified conversation.
-
ApplyConversationOneTimeAction(ConversationActionType actionType, Iterable<MapEntry<ConversationId, DateTime?>> idTimePairs, FolderId? contextFolderId, FolderId? destinationFolderId, DeleteMode? deleteType, bool? isRead, RetentionType? retentionPolicyType, Uuid? retentionPolicyTagId, Flag? flag, bool? suppressReadReceipts, ServiceErrorHandling errorHandlingMode)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Applies one time conversation action on items in specified folder inside
the conversation.
-
ArchiveItems(Iterable<ItemId> itemIds, FolderId sourceFolderId)
→ Future<ServiceResponseCollection<ArchiveItemResponse>>
-
Archives multiple items in a single call to EWS.
-
AutodiscoverUrl(String emailAddress)
→ Future<void>
-
Initializes the Url property to the Exchange Web Services URL for the specified e-mail address by
calling the Autodiscover service.
-
AutodiscoverUrlWithCallback(String emailAddress, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
→ Future<void>
-
Initializes the Url property to the Exchange Web Services URL for the specified e-mail address by
calling the Autodiscover service.
-
BindToFolder(FolderId folderId, PropertySet propertySet)
→ Future<Folder>
-
Binds to a folder.
-
BindToFolderGeneric<TFolder extends Folder>(FolderId folderId, PropertySet propertySet)
→ Future<TFolder>
-
Binds to folder.
-
BindToFolders(Iterable<FolderId> folderIds, PropertySet propertySet)
→ Future<ServiceResponseCollection<GetFolderResponse>>
-
Binds to multiple folders in a single call to EWS.
-
BindToGroupItems(Iterable<ItemId> itemIds, PropertySet propertySet, String anchorMailbox)
→ Future<ServiceResponseCollection<GetItemResponse>>
-
Binds to multiple items in a single call to EWS.
-
BindToItem(ItemId? itemId, PropertySet propertySet)
→ Future<Item?>
-
Binds to item.
-
BindToItemGeneric<TItem extends Item>(ItemId? itemId, PropertySet propertySet)
→ Future<TItem>
-
Binds to item.
-
BindToItems(Iterable<ItemId> itemIds, PropertySet propertySet)
→ Future<ServiceResponseCollection<GetItemResponse>>
-
Binds to multiple items in a single call to EWS.
-
BuildGetEventsRequest(String? subscriptionId, String? watermark)
→ GetEventsRequest
-
Builds an request to retrieve the latests events associated with a pull subscription.
-
BuildSubscribeToPullNotificationsRequest(Iterable<FolderId>? folderIds, int timeout, String? watermark, List<EventType> eventTypes)
→ SubscribeToPullNotificationsRequest
-
Builds a request to subscribe to pull notifications in the authenticated user's mailbox.
-
BuildSubscribeToPushNotificationsRequest(Iterable<FolderId>? folderIds, Uri url, int frequency, String? watermark, String? callerData, String? anchorMailbox, List<EventType> eventTypes)
→ SubscribeToPushNotificationsRequest
-
Set a TeamMailbox
-
BuildSubscribeToStreamingNotificationsRequest(Iterable<FolderId>? folderIds, List<EventType> eventTypes)
→ SubscribeToStreamingNotificationsRequest
-
Builds request to subscribe to streaming notifications in the authenticated user's mailbox.
-
BuildSyncFolderHierarchyRequest(FolderId? syncFolderId, PropertySet propertySet, String? syncState)
→ Future<SyncFolderHierarchyRequest>
-
Builds a request to synchronize the specified folder hierarchy of the mailbox this Service is connected to.
-
BuildSyncFolderItemsRequest(FolderId? syncFolderId, PropertySet propertySet, Iterable<ItemId>? ignoredItemIds, int maxChangesReturned, int numberOfDays, SyncFolderItemsScope syncScope, String? syncState)
→ SyncFolderItemsRequest
-
Builds a request to synchronize the items of a specific folder.
-
BuildUnsubscribeRequest(String? subscriptionId)
→ UnsubscribeRequest
-
Buids a request to unsubscribe from a subscription.
-
ConvertDateTimeToUniversalDateTime(DateTime value)
→ DateTime
-
Converts a DateTime to UTC the way C# handles the DateTime kinds: a UTC
DateTime is returned as is, a [datetime.TZDateTime] (Local kind) is converted
from its own time zone and a plain local DateTime (Unspecified kind) is read
as a wall-clock time in the service's time zone, or in the platform's local
time zone when [TimeZone] is null (C#'s default, TimeZoneInfo.Local).
inherited
-
ConvertDateTimeToUniversalDateTimeString(DateTime value)
→ String
-
Converts the date time to universal date time string.
inherited
-
ConvertId(AlternateIdBase id, IdFormat destinationFormat)
→ Future<AlternateIdBase?>
-
Converts Id from one format to another in a single call to EWS.
-
ConvertIds(Iterable<AlternateIdBase> ids, IdFormat destinationFormat)
→ Future<ServiceResponseCollection<ConvertIdResponse>>
-
Converts multiple Ids from one format to another in a single call to EWS.
-
ConvertStartDateToUnspecifiedDateTime(String? value)
→ DateTime?
-
Converts xs:dateTime String with either "Z", "-00:00" bias, or "" suffixes to
unspecified StartDate value ignoring the suffix.
inherited
-
ConvertUniversalDateTimeStringToLocalDateTime(String? value)
→ DateTime?
-
Converts the universal date time String to local date time.
inherited
-
CopyFolder(FolderId folderId, FolderId destinationFolderId)
→ Future<Folder?>
-
Copies a folder. Calling this method results in a call to EWS.
-
CopyItem(ItemId? itemId, FolderId? destinationFolderId)
→ Future<Item?>
-
Copies an item. Calling this method results in a call to EWS.
-
CopyItems(Iterable<ItemId> itemIds, FolderId destinationFolderId)
→ Future<ServiceResponseCollection<MoveCopyItemResponse>>
-
Copies multiple items in a single call to EWS.
-
CopyItemsInConversations(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, FolderId destinationFolderId)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Copies the items in the specified conversation to the specified destination folder.
Calling this method results in a call to EWS.
-
CopyItemsWithReturnNewItemIds(Iterable<ItemId> itemIds, FolderId destinationFolderId, bool returnNewItemIds)
→ Future<ServiceResponseCollection<MoveCopyItemResponse>>
-
Copies multiple items in a single call to EWS.
-
CreateAttachments(String? parentItemId, Iterable<Attachment?> attachments)
→ Future<ServiceResponseCollection<CreateAttachmentResponse>>
-
Creates attachments.
-
CreateFolder(Folder folder, FolderId parentFolderId)
→ Future<void>
-
Creates a folder. Calling this method results in a call to EWS.
-
CreateItem(Item item, FolderId? parentFolderId, MessageDisposition? messageDisposition, SendInvitationsMode? sendInvitationsMode)
→ Future<void>
-
Creates an item. Calling this method results in a call to EWS.
-
CreateItems(Iterable<Item> items, FolderId? parentFolderId, MessageDisposition? messageDisposition, SendInvitationsMode? sendInvitationsMode)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
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.
-
CreateUserConfiguration(UserConfiguration userConfiguration)
→ Future<void>
-
Creates a UserConfiguration.
-
DefaultAutodiscoverRedirectionUrlValidationCallback(String redirectionUrl)
→ bool
-
Default implementation of AutodiscoverRedirectionUrlValidationCallback.
Always returns true indicating that the URL can be used.
-
DeleteAttachments(Iterable<Attachment?> attachments)
→ Future<ServiceResponseCollection<DeleteAttachmentResponse>>
-
Deletes attachments.
-
DeleteFolder(FolderId? folderId, DeleteMode deleteMode)
→ Future<void>
-
Deletes a folder. Calling this method results in a call to EWS.
-
DeleteItem(ItemId? itemId, DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences, [bool suppressReadReceipts = false])
→ Future<void>
-
Deletes an item. Calling this method results in a call to EWS.
-
DeleteItems(Iterable<ItemId> itemIds, DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences, [bool suppressReadReceipt = false])
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Deletes multiple items in a single call to EWS.
-
DeleteItemsInConversations(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, DeleteMode deleteMode)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Deletes the items in the specified conversation. Calling this method results in a call to EWS.
-
DeleteUserConfiguration(String name, FolderId parentFolderId)
→ Future<void>
-
Deletes a UserConfiguration.
-
DisableAlwaysCategorizeItemsInConversations(Iterable<ConversationId> conversationId, bool processSynchronously)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets up a conversation so that any item received within that conversation is no longer categorized.
Calling this method results in a call to EWS.
-
DisableAlwaysDeleteItemsInConversations(Iterable<ConversationId> conversationId, bool processSynchronously)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets up a conversation so that any item received within that conversation is no longer moved to Deleted Items folder.
Calling this method results in a call to EWS.
-
DisableAlwaysMoveItemsInConversations(Iterable<ConversationId> conversationIds, bool processSynchronously)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets up a conversation so that any item received within that conversation is no longer moved to a specific folder.
Calling this method results in a call to EWS.
-
Calls the custom SOAP header serialization event handlers, if defined.
inherited
-
EmptyFolder(FolderId? folderId, DeleteMode deleteMode, bool deleteSubFolders)
→ Future<void>
-
Empties a folder. Calling this method results in a call to EWS.
-
EnableAlwaysCategorizeItemsInConversations(Iterable<ConversationId> conversationId, Iterable<String> categories, bool processSynchronously)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets up a conversation so that any item received within that conversation is always categorized.
Calling this method results in a call to EWS.
-
EnableAlwaysDeleteItemsInConversations(Iterable<ConversationId> conversationId, bool processSynchronously)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets up a conversation so that any item received within that conversation is always moved to Deleted Items folder.
Calling this method results in a call to EWS.
-
EnableAlwaysMoveItemsInConversations(Iterable<ConversationId> conversationId, FolderId destinationFolderId, bool processSynchronously)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets up a conversation so that any item received within that conversation is always moved to a specific folder.
Calling this method results in a call to EWS.
-
ExpandGroup(EmailAddress emailAddress)
→ Future<ExpandGroupResults>
-
Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.
-
ExpandGroupWithAddressAndRoutingType(String address, String routingType)
→ Future<ExpandGroupResults>
-
Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.
-
ExpandGroupWithItemId(ItemId groupId)
→ Future<ExpandGroupResults>
-
Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.
-
ExpandGroupWithSmtpAddress(String smtpAddress)
→ Future<ExpandGroupResults>
-
Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.
-
FindAppointments(FolderId parentFolderId, CalendarView calendarView)
→ Future<FindItemsResults<Appointment>>
-
Obtains a list of appointments by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindAppointmentsWithWellKnownFolder(WellKnownFolderName parentFolderName, CalendarView calendarView)
→ Future<FindItemsResults<Appointment>>
-
Obtains a list of appointments by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindConversation(ViewBase view, FolderId folderId)
→ Future<List<Conversation>>
-
Retrieves a collection of all Conversations in the specified Folder.
-
FindConversationWithHighlightTerms(ViewBase view, FolderId folderId, String? queryString, bool returnHighlightTerms)
→ Future<FindConversationResults>
-
Searches for and retrieves a collection of Conversations in the specified Folder.
Along with conversations, a list of highlight terms are returned.
-
FindConversationWithHighlightTermsAndMailboxScope(ViewBase view, FolderId folderId, String? queryString, bool returnHighlightTerms, MailboxSearchLocation? mailboxScope)
→ Future<FindConversationResults>
-
Searches for and retrieves a collection of Conversations in the specified Folder.
Along with conversations, a list of highlight terms are returned.
-
FindConversationWithQueryString(ViewBase view, FolderId folderId, String? queryString)
→ Future<List<Conversation>>
-
Retrieves a collection of all Conversations in the specified Folder.
-
FindFoldersWithFolderId(FolderId parentFolderId, SearchFilter? searchFilter, FolderView view)
→ Future<FindFoldersResults>
-
Obtains a list of folders by searching the sub-folders of the specified folder.
-
FindFoldersWithFolderIdAndView(FolderId parentFolderId, FolderView view)
→ Future<FindFoldersResults>
-
Obtains a list of folders by searching the sub-folders of the specified folder.
-
FindFoldersWithFolderIds(Iterable<FolderId> parentFolderIds, SearchFilter? searchFilter, FolderView view)
→ Future<ServiceResponseCollection<FindFolderResponse>>
-
Obtains a list of folders by searching the sub-folders of each of the specified folders.
-
FindFoldersWithWellKnownFolder(WellKnownFolderName parentFolderName, SearchFilter? searchFilter, FolderView view)
→ Future<FindFoldersResults>
-
Obtains a list of folders by searching the sub-folders of the specified folder.
-
FindFoldersWithWellKnownFolderAndView(WellKnownFolderName parentFolderName, FolderView view)
→ Future<FindFoldersResults>
-
Obtains a list of folders by searching the sub-folders of the specified folder.
-
FindGroupConversation(ViewBase view, FolderId folderId, String anchorMailbox)
→ Future<List<Conversation>>
-
Retrieves a collection of all Conversations in the specified Folder.
-
FindItems(WellKnownFolderName parentFolderName, String queryString, ViewBase view, Grouping groupBy)
→ Future<GroupedFindItemsResults<Item>?>
-
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsGeneric<TItem extends Item>(Iterable<FolderId?> parentFolderIds, SearchFilter? searchFilter, String? queryString, ViewBase view, Grouping? groupBy, ServiceErrorHandling errorHandlingMode)
→ Future<ServiceResponseCollection<FindItemResponse<TItem>>>
-
Finds items.
-
FindItemsGenericWithFolderIdAndFilterAndViewAndGrouping<TItem extends Item>(FolderId parentFolderId, SearchFilter? searchFilter, ViewBase view, Grouping? groupBy)
→ Future<ServiceResponseCollection<FindItemResponse<TItem>>>
-
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndFilterAndView(FolderId parentFolderId, SearchFilter? searchFilter, ViewBase view)
→ Future<FindItemsResults<Item>>
-
Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndFilterAndViewAndGrouping(FolderId parentFolderId, SearchFilter searchFilter, ViewBase view, Grouping groupBy)
→ Future<GroupedFindItemsResults<Item>?>
-
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndQueryAndHighlightAndView(FolderId parentFolderId, String queryString, bool returnHighlightTerms, ViewBase view)
→ Future<FindItemsResults<Item>?>
-
Obtains a list of items by searching the contents of a specific folder.
Along with conversations, a list of highlight terms are returned.
Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndQueryAndHighlightAndViewAndGrouping(FolderId parentFolderId, String queryString, bool returnHighlightTerms, ViewBase view, Grouping groupBy)
→ Future<GroupedFindItemsResults<Item>?>
-
Obtains a list of items by searching the contents of a specific folder.
Along with conversations, a list of highlight terms are returned.
Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndQueryAndView(FolderId parentFolderId, String queryString, ViewBase view)
→ Future<FindItemsResults<Item>?>
-
Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndQueryAndViewAndGrouping(FolderId parentFolderId, String queryString, ViewBase view, Grouping groupBy)
→ Future<GroupedFindItemsResults<Item>?>
-
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndView(FolderId parentFolderId, ViewBase view)
→ Future<FindItemsResults<Item>>
-
Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithFolderIdAndViewAndGrouping(FolderId parentFolderId, ViewBase view, Grouping groupBy)
→ Future<GroupedFindItemsResults<Item>?>
-
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithWellKnownFolderAndFilterAndView(WellKnownFolderName parentFolderName, SearchFilter searchFilter, ViewBase view)
→ Future<FindItemsResults<Item>?>
-
Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithWellKnownFolderAndFilterAndViewAndGrouping(WellKnownFolderName parentFolderName, SearchFilter searchFilter, ViewBase view, Grouping groupBy)
→ Future<GroupedFindItemsResults<Item>?>
-
Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithWellKnownFolderAndQueryAndView(WellKnownFolderName parentFolderName, String queryString, ViewBase view)
→ Future<FindItemsResults<Item>?>
-
Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
FindItemsWithWellKnownFolderAndView(WellKnownFolderName parentFolderName, ViewBase view)
→ Future<FindItemsResults<Item>?>
-
Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.
-
GetAttachment(Attachment attachment, BodyType? bodyType, Iterable<PropertyDefinitionBase>? additionalProperties)
→ Future<void>
-
Gets an attachment.
-
GetAttachments(Iterable<Attachment> attachments, BodyType? bodyType, Iterable<PropertyDefinitionBase>? additionalProperties)
→ Future<ServiceResponseCollection<GetAttachmentResponse>>
-
Gets attachments.
-
GetAttachmentsWithIds(Iterable<String> attachmentIds, BodyType? bodyType, Iterable<PropertyDefinitionBase>? additionalProperties)
→ Future<ServiceResponseCollection<GetAttachmentResponse>>
-
Gets attachments.
-
GetAutodiscoverUrlWithExchangeVersionAndCallback(String emailAddress, ExchangeVersion requestedServerVersion, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
→ Future<Uri>
-
Gets the EWS URL from Autodiscover.
-
GetConversationItems(Iterable<ConversationRequest> conversations, PropertySet propertySet, Iterable<FolderId>? foldersToIgnore, ConversationSortOrder? sortOrder)
→ Future<ServiceResponseCollection<GetConversationItemsResponse>>
-
Gets the items for a set of conversations.
-
GetConversationItemsWithConversationId(ConversationId conversationId, PropertySet propertySet, String? syncState, Iterable<FolderId>? foldersToIgnore, ConversationSortOrder? sortOrder)
→ Future<ConversationResponse?>
-
Gets the items for a conversation.
-
GetConversationItemsWithMailboxScope(Iterable<ConversationRequest> conversations, PropertySet propertySet, Iterable<FolderId>? foldersToIgnore, ConversationSortOrder? sortOrder, MailboxSearchLocation? mailboxScope)
→ Future<ServiceResponseCollection<GetConversationItemsResponse>>
-
Gets the items for a set of conversations.
-
GetDelegates(Mailbox mailbox, bool includePermissions, [Iterable<UserId> userIds = const <UserId>[]])
→ Future<DelegateInformation>
-
Retrieves the delegates of a specific mailbox. Calling this method results in a call to EWS.
-
GetEvents(String? subscriptionId, String? watermark)
→ Future<GetEventsResults>
-
Retrieves the latests events associated with a pull subscription. Calling this method results in a call to EWS.
-
GetEwsUrlFromResponse(GetUserSettingsResponse response, bool isExternal)
→ Uri
-
Gets the EWS URL from Autodiscover GetUserSettings response.
-
GetGroupConversationItems(ConversationId conversationId, PropertySet propertySet, String? syncState, Iterable<FolderId>? foldersToIgnore, ConversationSortOrder? sortOrder, String anchorMailbox)
→ Future<ConversationResponse?>
-
Gets the items for a conversation.
-
GetInboxRules()
→ Future<RuleCollection>
-
Retrieves inbox rules of the authenticated user.
-
GetInboxRulesWithMailboxSmtpAddress(String mailboxSmtpAddress)
→ Future<RuleCollection>
-
Retrieves the inbox rules of the specified user.
-
GetPasswordExpirationDate(String? mailboxSmtpAddress)
→ Future<DateTime?>
-
Get the password expiration date
-
GetRoomLists()
→ Future<EmailAddressCollection>
-
Retrieves a collection of all room lists in the organization.
-
GetRooms(EmailAddress emailAddress)
→ Future<List<EmailAddress>>
-
Retrieves a collection of all rooms in the specified room list in the organization.
-
GetServerTimeZones([Iterable<String>? timeZoneIds])
→ Future<List<TimeZoneDefinition>>
-
Retrieves the time zone definitions known to the server.
Not part of the C# ExchangeService public surface (the C# API only uses the request
internally); C# would convert the definitions to TimeZoneInfo, which Dart has no
equivalent for, so the parsed definitions are returned as-is.
-
GetUserAvailability(Iterable<AttendeeInfo> attendees, TimeWindow timeWindow, AvailabilityData requestedData, [AvailabilityOptions? options])
→ Future<GetUserAvailabilityResults>
-
Gets detailed information about the availability of a set of users, rooms, and resources within a
specified time window.
-
GetUserConfiguration(String name, FolderId parentFolderId, Set<UserConfigurationProperties> properties)
→ Future<UserConfiguration>
-
Gets a UserConfiguration.
-
GetUserOofSettings(String smtpAddress)
→ Future<OofSettings>
-
Gets Out of Office (OOF) settings for a specific user. Calling this method results in a call to EWS.
-
GetUserPhoto(String emailAddress, String userPhotoSize, String? entityTag)
→ Future<GetUserPhotoResults>
-
This method is for search scenarios. Retrieves a set of personas satisfying the specified search conditions.
-
GetUserRetentionPolicyTags()
→ Future<GetUserRetentionPolicyTagsResponse>
-
Get dicovery search configuration
-
InternalBindToFolders(Iterable<FolderId?> folderIds, PropertySet propertySet, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<GetFolderResponse>>
-
Binds to multiple folders in a single call to EWS.
-
InternalBindToItems(Iterable<ItemId?> itemIds, PropertySet propertySet, String? anchorMailbox, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<GetItemResponse>>
-
Binds to multiple items in a single call to EWS.
-
InternalConvertIds(Iterable<AlternateIdBase> ids, IdFormat destinationFormat, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<ConvertIdResponse>>
-
Converts multiple Ids from one format to another in a single call to EWS.
-
InternalCopyItems(Iterable<ItemId?> itemIds, FolderId? destinationFolderId, bool? returnNewItemIds, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<MoveCopyItemResponse>>
-
Copies multiple items in a single call to EWS.
-
InternalCreateItems(Iterable<Item> items, FolderId? parentFolderId, MessageDisposition? messageDisposition, SendInvitationsMode? sendInvitationsMode, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
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.
-
InternalCreateResponseObject(ServiceObject responseObject, FolderId? parentFolderId, MessageDisposition messageDisposition)
→ Future<List<Item>>
-
Create response object.
-
InternalDeleteItems(Iterable<ItemId?> itemIds, DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences, ServiceErrorHandling errorHandling, bool suppressReadReceipts)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Deletes multiple items in a single call to EWS.
-
InternalFindFolders(Iterable<FolderId> parentFolderIds, SearchFilter? searchFilter, FolderView view, ServiceErrorHandling errorHandlingMode)
→ Future<ServiceResponseCollection<FindFolderResponse>>
-
Finds folders.
-
InternalGetAttachments(Iterable<Attachment> attachments, BodyType? bodyType, Iterable<PropertyDefinitionBase>? additionalProperties, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<GetAttachmentResponse>>
-
This method is for retreiving people insight for given email addresses
-
InternalGetConversationItems(Iterable<ConversationRequest> conversations, PropertySet propertySet, Iterable<FolderId>? foldersToIgnore, ConversationSortOrder? sortOrder, MailboxSearchLocation? mailboxScope, int? maxItemsToReturn, String? anchorMailbox, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<GetConversationItemsResponse>>
-
Gets the items for a set of conversations.
-
InternalLoadPropertiesForItems(Iterable<Item> items, PropertySet propertySet, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Loads the properties of multiple items in a single call to EWS.
-
InternalMoveItems(Iterable<ItemId?> itemIds, FolderId? destinationFolderId, bool? returnNewItemIds, ServiceErrorHandling errorHandling)
→ Future<ServiceResponseCollection<MoveCopyItemResponse>>
-
Moves multiple items in a single call to EWS.
-
InternalProcessHttpErrorResponse(IEwsHttpWebResponse httpWebResponse, WebException webException, TraceFlags responseTraceFlag)
→ void
-
Processes an HTTP error response
inherited
-
InternalUpdateItems(Iterable<Item> items, FolderId? savedItemsDestinationFolderId, ConflictResolutionMode conflictResolution, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode, ServiceErrorHandling errorHandling, bool suppressReadReceipt)
→ Future<ServiceResponseCollection<UpdateItemResponse>>
-
Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.
-
IsTraceEnabledFor(TraceFlags traceFlag)
→ bool
-
Determines whether tracing is enabled for specified trace flag(s).
inherited
-
LoadPropertiesForFolder(Folder folder, PropertySet propertySet)
→ Future<void>
-
Load specified properties for a folder.
-
LoadPropertiesForItems(Iterable<Item> items, PropertySet propertySet)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Loads the properties of multiple items in a single call to EWS.
-
LoadPropertiesForUserConfiguration(UserConfiguration userConfiguration, Set<UserConfigurationProperties> properties)
→ Future<void>
-
Loads the properties of the specified userConfiguration.
-
MarkAllItemsAsRead(FolderId? folderId, bool readFlag, bool suppressReadReceipts)
→ Future<void>
-
Marks all items in folder as read/unread. Calling this method results in a call to EWS.
-
MarkAsJunk(Iterable<ItemId> itemIds, bool isJunk, bool moveItem)
→ Future<ServiceResponseCollection<MarkAsJunkResponse>>
-
Mark items as junk.
-
MoveFolder(FolderId folderId, FolderId destinationFolderId)
→ Future<Folder?>
-
Move a folder.
-
MoveItem(ItemId? itemId, FolderId? destinationFolderId)
→ Future<Item?>
-
Move an item.
-
MoveItems(Iterable<ItemId> itemIds, FolderId destinationFolderId)
→ Future<ServiceResponseCollection<MoveCopyItemResponse>>
-
Moves multiple items in a single call to EWS.
-
MoveItemsInConversations(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, FolderId destinationFolderId)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Moves the items in the specified conversation to the specified destination folder.
Calling this method results in a call to EWS.
-
MoveItemsWithReturnNewItemIds(Iterable<ItemId> itemIds, FolderId destinationFolderId, bool returnNewItemIds)
→ Future<ServiceResponseCollection<MoveCopyItemResponse>>
-
Moves multiple items in a single call to EWS.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
PrepareHttpWebRequest(String methodName)
→ Future<IEwsHttpWebRequest>
-
Initializes a new instance of the
-
PrepareHttpWebRequestForUrl(Uri url, bool acceptGzipEncoding, bool allowAutoRedirect)
→ Future<IEwsHttpWebRequest>
-
Creates an HttpWebRequest instance and initializes it with the appropriate parameters,
based on the configuration of this service object.
inherited
-
ProcessHttpErrorResponse(IEwsHttpWebResponse httpWebResponse, WebException webException)
→ void
-
Processes an HTTP error response.
override
-
Traces the HTTP response headers.
inherited
-
RemoveDelegates(Mailbox mailbox, Iterable<UserId> userIds)
→ Future<List<DelegateUserResponse>>
-
Removes delegates on a specific mailbox. Calling this method results in a call to EWS.
-
ResolveName(String? nameToResolve, Iterable<FolderId>? parentFolderIds, ResolveNameSearchLocation searchScope, bool returnContactDetails, PropertySet? contactDataPropertySet)
→ Future<NameResolutionCollection>
-
Finds contacts in the Global Address List and/or in specific contact folders that have names
that match the one passed as a parameter. Calling this method results in a call to EWS.
-
ResolveNameSimple(String nameToResolve)
→ Future<NameResolutionCollection>
-
Finds contacts in the user's Contacts folder and the Global Address List (in that order) that have names
that match the one passed as a parameter. Calling this method results in a call to EWS.
-
ResolveNameWithFolderIdsAndSearchScopeAndDetails(String nameToResolve, Iterable<FolderId>? parentFolderIds, ResolveNameSearchLocation searchScope, bool returnContactDetails)
→ Future<NameResolutionCollection>
-
Finds contacts in the Global Address List and/or in specific contact folders that have names
that match the one passed as a parameter. Calling this method results in a call to EWS.
-
ResolveNameWithSearchScopeAndDetails(String nameToResolve, ResolveNameSearchLocation searchScope, bool returnContactDetails)
→ Future<NameResolutionCollection>
-
Finds contacts in the Global Address List that have names that match the one passed as a parameter.
Calling this method results in a call to EWS.
-
ResolveNameWithSearchScopeAndDetailsAndPropertySet(String nameToResolve, ResolveNameSearchLocation searchScope, bool returnContactDetails, PropertySet contactDataPropertySet)
→ Future<NameResolutionCollection?>
-
Finds contacts in the Global Address List that have names that match the one passed as a parameter.
Calling this method results in a call to EWS.
-
SendItem(Item item, FolderId? savedCopyDestinationFolderId)
→ Future<void>
-
Sends an item.
-
SetContentType(IEwsHttpWebRequest request)
→ void
-
Sets the type of the content.
override
-
SetCustomUserAgent(String userAgent)
→ void
-
Register the custom auth module to support non-ascii upn authentication if the server supports that
inherited
-
SetFlagStatusForItemsInConversations(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, Flag flagStatus)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets flag status for items in conversation. Calling this method would result in call to EWS.
-
SetReadStateForItemsInConversations(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, bool isRead)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets the read state for items in conversation. Calling this method would
result in call to EWS.
-
SetReadStateForItemsInConversationsWithSuppressReadReceipts(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, bool isRead, bool suppressReadReceipts)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets the read state for items in conversation. Calling this method would
result in call to EWS.
-
SetRetentionPolicyForItemsInConversations(Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs, FolderId? contextFolderId, RetentionType retentionPolicyType, Uuid? retentionPolicyTagId)
→ Future<ServiceResponseCollection<ServiceResponse>>
-
Sets the retention policy for items in conversation. Calling this method would
result in call to EWS.
-
SetUserOofSettings(String smtpAddress, OofSettings oofSettings)
→ Future<void>
-
Sets the Out of Office (OOF) settings for a specific mailbox. Calling this method results in a call to EWS.
-
SetUserPhoto(String emailAddress, Uint8List photo)
→ Future<SetUserPhotoResults>
-
Set a user's photo.
-
SubscribeToGroupPushNotifications(String groupMailboxSmtp, Uri url, int frequency, String? watermark, String? callerData, List<EventType> eventTypes)
→ Future<PushSubscription>
-
Subscribes to push notifications on a group mailbox. Calling this method results in a call to EWS.
-
SubscribeToPullNotifications(Iterable<FolderId> folderIds, int timeout, String? watermark, List<EventType> eventTypes)
→ Future<PullSubscription>
-
Subscribes to pull notifications. Calling this method results in a call to EWS.
-
SubscribeToPullNotificationsOnAllFolders(int timeout, String? watermark, List<EventType> eventTypes)
→ Future<PullSubscription>
-
Subscribes to pull notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.
-
SubscribeToPushNotifications(Iterable<FolderId> folderIds, Uri url, int frequency, String? watermark, List<EventType> eventTypes)
→ Future<PushSubscription>
-
Subscribes to push notifications. Calling this method results in a call to EWS.
-
SubscribeToPushNotificationsOnAllFolders(Uri url, int frequency, String? watermark, List<EventType> eventTypes)
→ Future<PushSubscription>
-
Subscribes to push notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.
-
SubscribeToPushNotificationsOnAllFoldersWithCallerData(Uri url, int frequency, String? watermark, String? callerData, List<EventType> eventTypes)
→ Future<PushSubscription>
-
Subscribes to push notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.
-
SubscribeToPushNotificationsWithCallerData(Iterable<FolderId> folderIds, Uri url, int frequency, String? watermark, String? callerData, List<EventType> eventTypes)
→ Future<PushSubscription>
-
Subscribes to push notifications. Calling this method results in a call to EWS.
-
SubscribeToStreamingNotifications(Iterable<FolderId> folderIds, List<EventType> eventTypes)
→ Future<StreamingSubscription>
-
Subscribes to streaming notifications. Calling this method results in a call to EWS.
-
SubscribeToStreamingNotificationsOnAllFolders(List<EventType> eventTypes)
→ Future<StreamingSubscription>
-
Subscribes to streaming notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.
-
SyncFolderHierarchy(FolderId? syncFolderId, PropertySet propertySet, String? syncState)
→ Future<ChangeCollection<FolderChange>>
-
Synchronizes the sub-folders of a specific folder. Calling this method results in a call to EWS.
-
SyncFolderHierarchyWithPropertySet(PropertySet propertySet, String? syncState)
→ Future<ChangeCollection<FolderChange>>
-
Synchronizes the entire folder hierarchy of the mailbox this Service is connected to. Calling this method results in a call to EWS.
-
SyncFolderItems(FolderId? syncFolderId, PropertySet propertySet, Iterable<ItemId>? ignoredItemIds, int maxChangesReturned, SyncFolderItemsScope syncScope, String? syncState)
→ Future<ChangeCollection<ItemChange>>
-
Synchronizes the items of a specific folder. Calling this method results in a call to EWS.
-
SyncFolderItemsWithNumberOfDays(FolderId? syncFolderId, PropertySet propertySet, Iterable<ItemId>? ignoredItemIds, int maxChangesReturned, int numberOfDays, SyncFolderItemsScope syncScope, String? syncState)
→ Future<ChangeCollection<ItemChange>>
-
Synchronizes the items of a specific folder. Calling this method results in a call to EWS.
-
toString()
→ String
-
A string representation of this object.
inherited
-
Traces the HTTP request headers.
inherited
-
TraceMessage(TraceFlags traceType, String logEntry)
→ void
-
Logs the specified String to the TraceListener if tracing is enabled.
inherited
-
TraceXml(TraceFlags traceType, MemoryStream stream)
→ void
-
Logs the specified XML to the TraceListener if tracing is enabled.
inherited
-
Unsubscribe(String? subscriptionId)
→ Future<void>
-
Unsubscribes from a subscription. Calling this method results in a call to EWS.
-
UpdateDelegates(Mailbox mailbox, MeetingRequestsDeliveryScope? meetingRequestsDeliveryScope, Iterable<DelegateUser> delegateUsers)
→ Future<List<DelegateUserResponse>>
-
Updates delegates on a specific mailbox. Calling this method results in a call to EWS.
-
UpdateFolder(Folder folder)
→ Future<void>
-
Updates a folder.
-
UpdateInboxRules(Iterable<RuleOperation> operations, bool removeOutlookRuleBlob)
→ Future<void>
-
Updates the authenticated user's inbox rules by applying the specified operations.
-
UpdateInboxRulesWithMailboxSmtpAddress(Iterable<RuleOperation> operations, bool removeOutlookRuleBlob, String mailboxSmtpAddress)
→ Future<void>
-
Update the specified user's inbox rules by applying the specified operations.
-
UpdateItem(Item item, FolderId? savedItemsDestinationFolderId, ConflictResolutionMode conflictResolution, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode? sendInvitationsOrCancellationsMode, [bool suppressReadReceipts = false])
→ Future<Item?>
-
Updates an item.
-
UpdateItems(Iterable<Item> items, FolderId savedItemsDestinationFolderId, ConflictResolutionMode conflictResolution, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode, [bool suppressReadReceipts = false])
→ Future<ServiceResponseCollection<UpdateItemResponse>>
-
Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.
-
UpdateUserConfiguration(UserConfiguration userConfiguration)
→ Future<void>
-
Updates a UserConfiguration.
-
Validate()
→ void
-
GetClientAccessToken
override