Ews Class
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 8.0.9673)
Provides methods for communication with Exchange Web Service.
See https://www.rebex.net/ews/features/ for code snippets of common use cases.
Syntax
public class Ews : NetworkSession, ILogWriterProvider, IDisposable, IAsyncDisposable
Inherited Members
Examples
See https://www.rebex.net/ews/samples.aspx for ready-to-use samples.
Connecting and authenticating
// initialize new EWS client instance
var client = new Rebex.Net.Ews();
// attach logger for diagnostic purposes
client.LogWriter = new Rebex.FileLogWriter(@"C:\MyData\ews.log", Rebex.LogLevel.Debug);
// connect and authenticate
client.Connect(hostname);
client.Login(username, password);
Listing and searching messages
// get top 25 messages from INBOX
var page = EwsPageView.CreateIndexed(0, 25);
var list = client.GetMessageList(EwsFolderId.Inbox, EwsItemFields.Envelope, page);
// get top 25 messages from Alice
var searchParam = EwsSearchParameter.From(aliceEmail);
list = client.Search(EwsFolderId.Inbox, EwsItemFields.Envelope, page, searchParam);
// print info about retrieved messages
foreach (var item in list)
{
Console.WriteLine($"[{item.ReceivedDate}] {item.From}: {item.Subject}");
}
Getting message info
// get message info
var info = client.GetMessageInfo(itemId,
EwsItemFields.Envelope |
EwsItemFields.TextBody |
EwsItemFields.Body);
// print the info
Console.WriteLine(
$"EWS ID: {info.Id}\n" +
$"MIME ID: {info.MessageId}\n" +
$"From: {info.From}\n" +
$"To: {info.To}\n" +
$"Importance: {info.Headers["Importance"] ?? info.Headers["X-Priority"]}\n" +
$"Attachments: {info.HasAttachments}\n" +
$"Subject: {info.Subject}\n" +
$"Body: {(info.TextBody ?? info.Body)}\n");
Downloading messages
// download the message (its MIME content) and parse it into MailMessage class
var mail = client.GetMailMessage(itemId);
// print the info
Console.WriteLine(
$"MIME ID: {mail.MessageId}\n" +
$"From: {mail.From}\n" +
$"To: {mail.To}\n" +
$"Importance: {mail.Importance}\n" +
$"Attachments: {mail.Attachments.Count}\n" +
$"Subject: {mail.Subject}\n" +
$"Body: {(mail.HasBodyText ? mail.BodyText : mail.BodyHtml)}\n");
// save the MIME message
mail.Save(@"c:\MyData\mail.eml");
// download the message directly without parsing it into memory
client.GetMessage(itemId, @"c:\MyData\mail.eml");
Constructors
| Name | Description |
|---|---|
| Ews() | Initializes Exchange Web Service client. See https://www.rebex.net/ews/features/ for code snippets of common use cases. |
Properties
| Name | Description |
|---|---|
| DefaultLogWriter | Gets or sets a default log writer used by all new instances of NetworkSession object. Inherited from NetworkSession. |
| DeleteMode | Gets or sets the mode for delete operations whether to delete entities to Deleted Items folder or delete it permanently. |
| InstanceId | Gets instance ID (intended for logging purposes). Inherited from NetworkSession. |
| IsAuthenticated | Gets a value indicating whether the Ews object is authenticated to an Exchange server. |
| IsBusy | Gets a value indicating whether there is any operation (method) in progress. |
| IsConnected | Gets a value indicating whether the Ews object is connected to an Exchange server. |
| LogWriter | Gets or sets the LogWriter used by this object. Inherited from NetworkSession. |
| Proxy | Gets or sets the network proxy to use to access a remote server. |
| Server | Gets information on the Exchange server. The value is available after successful authentication. |
| ServerName | Gets the server name, if available. Inherited from NetworkSession. |
| ServerPort | Gets the server port, if available. Inherited from NetworkSession. |
| Settings | Gets or sets an EwsSettings object. |
| Timeout | Gets or sets the length of time in milliseconds before the operation times out. |
| TlsSocket | Returns the TLS/SSL socket of secured connection. |
| UserName | Gets the authenticated user name, if available. Inherited from NetworkSession. |
Methods
| Name | Description |
|---|---|
| AddAttachment(EwsItemId, MailMessage) | Add a mail message as new attachment to an exchange item. |
| AddAttachment(EwsItemId, MimeMessage) | Adds a MIME message as new attachment to an exchange item. |
| AddAttachment(EwsItemId, String) | Adds a file as new attachment to an exchange item. |
| AddAttachment(EwsItemId, String, Byte[]) | Add a MIME raw data as new attachment to an exchange item. |
| AddAttachment(EwsItemId, String, Stream) | Adds a stream as new attachment to an exchange item. |
| AddAttachment(EwsItemId, String, Stream, String) | Adds a stream as new attachment to an exchange item. |
| AddAttachment(EwsItemId, String, String) | Adds a file as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, MailMessage, Object) | Add a mail message as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, MimeMessage, Object) | Adds a MIME message as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, String, Byte[], Object) | Add a MIME raw data as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, String, Stream, Object) | Adds a stream as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, String, Stream, String, Object) | Adds a stream as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, String, Object) | Adds a file as new attachment to an exchange item. |
| AddAttachmentAsync(EwsItemId, String, String, Object) | Adds a file as new attachment to an exchange item. |
| Connect(String) | Connects to an Exchange Server using HTTPS. |
| Connect(String, SslMode) | Connects to an Exchange server using the specified TLS/SSL mode (None for HTTP, Implicit for HTTPS). |
| Connect(String, Int32, SslMode) | Connects to an Exchange server using specified port and TLS/SSL mode. |
| ConnectAsync(String, SslMode, Object) | Connects to an Exchange server using the specified TLS/SSL mode (None for HTTP, Implicit for HTTPS). |
| ConnectAsync(String, Int32, SslMode, Object) | Connects to an Exchange server using specified port and TLS/SSL mode. |
| ConnectAsync(String, Object) | Connects to an Exchange Server using HTTPS. |
| CopyFolder(EwsFolderId, EwsFolderId) | Copies an exchange folder with its content into another exchange folder. |
| CopyFolderAsync(EwsFolderId, EwsFolderId, Object) | Copies an exchange folder with its content into another exchange folder. |
| CopyItem(EwsItemId, EwsFolderId) | Copies an item to specified exchange folder. |
| CopyItemAsync(EwsItemId, EwsFolderId, Object) | Copies an item to specified exchange folder. |
| CreateFolder(EwsFolderId, String) | Creates new subfolder in an exchange folder. |
| CreateFolderAsync(EwsFolderId, String, Object) | Creates new subfolder in an exchange folder. |
| DeleteAttachment(EwsAttachmentId) | Deletes an attachment identified by its ID. |
| DeleteAttachmentAsync(EwsAttachmentId, Object) | Deletes an attachment identified by its ID. |
| DeleteFolder(EwsFolderId) | Deletes an exchange folder. Use DeleteMode to specify whether delete folder permanently or move it to Deleted Items folder. |
| DeleteFolderAsync(EwsFolderId, Object) | Deletes an exchange folder. Use DeleteMode to specify whether delete folder permanently or move it to Deleted Items folder. |
| DeleteFolderContent(EwsFolderId, EwsDeleteScope) | Deletes content of an exchange folder. Folder itself remains. To delete the folder as well, see DeleteFolder(EwsFolderId) method. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. Use DeleteMode to specify whether delete folder content permanently or move it to Deleted Items folder. |
| DeleteFolderContentAsync(EwsFolderId, EwsDeleteScope, Object) | Deletes content of an exchange folder. Folder itself remains. To delete the folder as well, see DeleteFolder(EwsFolderId) method. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. Use DeleteMode to specify whether delete folder content permanently or move it to Deleted Items folder. |
| DeleteItem(EwsItemId) | Deletes an item specified by its ID. Use DeleteMode to specify whether to delete item permanently or move it to Deleted Items folder. |
| DeleteItem(EwsItemId, EwsDeleteMode) | Deletes an item specified by its ID. |
| DeleteItemAsync(EwsItemId, EwsDeleteMode, Object) | Deletes an item specified by its ID. |
| DeleteItemAsync(EwsItemId, Object) | Deletes an item specified by its ID. Use DeleteMode to specify whether to delete item permanently or move it to Deleted Items folder. |
| Disconnect() | Disconnects from the Exchange server. |
| DisconnectAsync(Object) | Disconnects from the Exchange server. |
| Dispose() | Disposes this Ews object. |
| ExportItem(EwsItemId) | Exports message in its exchange format. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
| ExportItemAsync(EwsItemId, Object) | Exports message in its exchange format. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
| FindFolder(EwsFolderId, String) | Finds a folder with given name in a parent folder. |
| FindFolderAsync(EwsFolderId, String, Object) | Finds a folder with given name in a parent folder. |
| FolderExists(EwsFolderId) | Detects whether a folder with specified ID still exists. |
| FolderExists(EwsFolderId, String) | Detects whether a folder with specified name exists under a parent folder. |
| FolderExistsAsync(EwsFolderId, Object) | Detects whether a folder with specified ID still exists. |
| FolderExistsAsync(EwsFolderId, String, Object) | Detects whether a folder with specified name exists under a parent folder. |
| GetAttachment(EwsAttachmentId) | Gets an attachment identified by its ID. |
| GetAttachmentAsync(EwsAttachmentId, Object) | Gets an attachment identified by its ID. |
| GetFolderId(EwsFolderId) | Gets full ID (native Exchange ID and Change key) of an exchange folder. |
| GetFolderId(EwsSpecialFolder) | Gets full ID (native Exchange ID and Change key) of a special exchange folder. |
| GetFolderIdAsync(EwsFolderId, Object) | Gets full ID (native Exchange ID and Change key) of an exchange folder. |
| GetFolderIdAsync(EwsSpecialFolder, Object) | Gets full ID (native Exchange ID and Change key) of a special exchange folder. |
| GetFolderInfo(EwsFolderId) | Gets information about an exchange folder identified by its ID. |
| GetFolderInfoAsync(EwsFolderId, Object) | Gets information about an exchange folder identified by its ID. |
| GetFolderList() | Gets a list of subfolders of the folder root. |
| GetFolderList(EwsFolderId) | Gets a list of subfolders of the specified folder. Operation is shallow, which means that only first level of subfolders is returned. |
| GetFolderList(EwsFolderId, EwsTraversalScope) | Gets a list of subfolders of the specified folder. |
| GetFolderListAsync(EwsFolderId, EwsTraversalScope, Object) | Gets a list of subfolders of the specified folder. |
| GetFolderListAsync(EwsFolderId, Object) | Gets a list of subfolders of the specified folder. Operation is shallow, which means that only first level of subfolders is returned. |
| GetFolderListAsync(Object) | Gets a list of subfolders of the folder root. |
| GetHashCode() | Gets hash code for this object. Inherited from NetworkSession. |
| GetItem(EwsItemId, Stream, EwsItemFormat) | Downloads and saves an item to specified stream in specified format. |
| GetItem(EwsItemId, String, EwsItemFormat) | Downloads and saves an item to specified path in specified format. |
| GetItemAsync(EwsItemId, Stream, EwsItemFormat, Object) | Downloads and saves an item to specified stream in specified format. |
| GetItemAsync(EwsItemId, String, EwsItemFormat, Object) | Downloads and saves an item to specified path in specified format. |
| GetItemInfo(EwsItemId) | Gets the information about an item with default set of properties retrieved. |
| GetItemInfo(EwsItemId, EwsItemFields) | Gets the information about an item with specified set of properties retrieved. |
| GetItemInfoAsync(EwsItemId, EwsItemFields, Object) | Gets the information about an item with specified set of properties retrieved. |
| GetItemInfoAsync(EwsItemId, Object) | Gets the information about an item with default set of properties retrieved. |
| GetItemList(EwsFolderId) | Lists specified folder to retrieve collection of containing items. |
| GetItemList(EwsFolderId, EwsItemFields) | Lists specified folder to retrieve collection of containing items. |
| GetItemList(EwsFolderId, EwsItemFields, EwsListView) | Lists specified folder to retrieve collection of containing items. |
| GetItemList(EwsFolderId, EwsItemFields, EwsPageView) | Lists specified folder to retrieve collection of containing items. |
| GetItemList(EwsFolderId, EwsPageView) | Lists specified folder to retrieve collection of containing items. |
| GetItemListAsync(EwsFolderId, EwsItemFields, EwsListView, Object) | Lists specified folder to retrieve collection of containing items. |
| GetItemListAsync(EwsFolderId, EwsItemFields, EwsPageView, Object) | Lists specified folder to retrieve collection of containing items. |
| GetItemListAsync(EwsFolderId, EwsItemFields, Object) | Lists specified folder to retrieve collection of containing items. |
| GetItemListAsync(EwsFolderId, EwsPageView, Object) | Lists specified folder to retrieve collection of containing items. |
| GetItemListAsync(EwsFolderId, Object) | Lists specified folder to retrieve collection of containing items. |
| GetMailMessage(EwsItemId) | Gets a MailMessage from the Exchange server. |
| GetMailMessageAsync(EwsItemId, Object) | Gets a MailMessage from the Exchange server. |
| GetMessage(EwsItemId, Stream) | Downloads and saves a message to specified stream in MIME format. |
| GetMessage(EwsItemId, String) | Downloads and saves a message to specified path in MIME format. |
| GetMessageAsync(EwsItemId, Stream, Object) | Downloads and saves a message to specified stream in MIME format. |
| GetMessageAsync(EwsItemId, String, Object) | Downloads and saves a message to specified path in MIME format. |
| GetMessageInfo(EwsItemId) | Gets the information about a message with default set of properties retrieved. |
| GetMessageInfo(EwsItemId, EwsItemFields) | Gets the information about a message with specified set of properties retrieved. |
| GetMessageInfoAsync(EwsItemId, EwsItemFields, Object) | Gets the information about a message with specified set of properties retrieved. |
| GetMessageInfoAsync(EwsItemId, Object) | Gets the information about a message with default set of properties retrieved. |
| GetMessageList(EwsFolderId) | Lists specified folder to retrieve collection of containing items. |
| GetMessageList(EwsFolderId, EwsItemFields) | Lists specified folder to retrieve collection of containing items. |
| GetMessageList(EwsFolderId, EwsItemFields, EwsListView) | Lists specified folder to retrieve collection of containing items. |
| GetMessageList(EwsFolderId, EwsItemFields, EwsPageView) | Lists specified folder to retrieve collection of containing items. |
| GetMessageList(EwsFolderId, EwsPageView) | Lists specified folder to retrieve collection of containing items. |
| GetMessageListAsync(EwsFolderId, EwsItemFields, EwsListView, Object) | Lists specified folder to retrieve collection of containing items. |
| GetMessageListAsync(EwsFolderId, EwsItemFields, EwsPageView, Object) | Lists specified folder to retrieve collection of containing items. |
| GetMessageListAsync(EwsFolderId, EwsItemFields, Object) | Lists specified folder to retrieve collection of containing items. |
| GetMessageListAsync(EwsFolderId, EwsPageView, Object) | Lists specified folder to retrieve collection of containing items. |
| GetMessageListAsync(EwsFolderId, Object) | Lists specified folder to retrieve collection of containing items. |
| GetMimeMessage(EwsItemId) | Gets a MimeMessage from the Exchange server. |
| GetMimeMessageAsync(EwsItemId, Object) | Gets a MimeMessage from the Exchange server. |
| GetSupportedAuthenticationMethods() | Gets the list of supported authentication methods. |
| GetUpdatedFolders(EwsFolderId, String) | Receives changes that occurred since the last checkpoint. |
| GetUpdatedFoldersAsync(EwsFolderId, String, Object) | Receives changes that occurred since the last checkpoint. |
| GetUpdatedItems(EwsFolderId, EwsItemFields, Int32, String) | Receives changes that occurred since the last checkpoint. |
| GetUpdatedItemsAsync(EwsFolderId, EwsItemFields, Int32, String, Object) | Receives changes that occurred since the last checkpoint. |
| ImportItem(EwsFolderId, Byte[]) | Imports an item in exchange format to specified exchange folder. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
| ImportItemAsync(EwsFolderId, Byte[], Object) | Imports an item in exchange format to specified exchange folder. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
| ItemExists(EwsItemId) | Detects whether an item with specified ID still exists. |
| ItemExistsAsync(EwsItemId, Object) | Detects whether an item with specified ID still exists. |
| Login(EwsAuthentication) | Authenticates the user to the Exchange server using the specified authentication method that does not require credentials (NTLM, Kerberos or Negotiate). |
| Login(String, EwsAuthentication) | Authenticates the user to the Exchange server using an OAuth access token. |
| Login(String, String) | Authenticates the user to the Exchange server. |
| Login(String, String, EwsAuthentication) | Authenticates the user to the Exchange server. |
| LoginAsync(EwsAuthentication, Object) | Authenticates the user to the Exchange server using the specified authentication method that does not require credentials (NTLM, Kerberos or Negotiate). |
| LoginAsync(String, EwsAuthentication, Object) | Authenticates the user to the Exchange server using an OAuth access token. |
| LoginAsync(String, String, EwsAuthentication, Object) | Authenticates the user to the Exchange server. |
| LoginAsync(String, String, Object) | Authenticates the user to the Exchange server. |
| MoveFolder(EwsFolderId, EwsFolderId) | Moves an exchange folder with its content into another exchange folder. |
| MoveFolderAsync(EwsFolderId, EwsFolderId, Object) | Moves an exchange folder with its content into another exchange folder. |
| MoveItem(EwsItemId, EwsFolderId) | Moves an item to specified exchange folder. |
| MoveItemAsync(EwsItemId, EwsFolderId, Object) | Moves an item to specified exchange folder. |
| ProvisionHeaders(String[]) | Provision custom X-Headers on an Exchange server. |
| ProvisionHeadersAsync(String[], Object) | Provision custom X-Headers on an Exchange server. |
| RenameFolder(EwsFolderId, String) | Renames an exchange folder. |
| RenameFolderAsync(EwsFolderId, String, Object) | Renames an exchange folder. |
| ResolveNames(String) | Searches Exchange users and Contacts for the specified name. |
| ResolveNamesAsync(String, Object) | Searches Exchange users and Contacts for the specified name. |
| Search(EwsFolderId, EwsItemFields, EwsListView, EwsSearchParameter[]) | Searches a folder for messages that match the specified searching criteria. |
| Search(EwsFolderId, EwsItemFields, EwsListView, String) | Searches a folder for messages that match the specified searching criteria. |
| Search(EwsFolderId, EwsItemFields, EwsPageView, EwsSearchParameter[]) | Searches a folder for messages that match the specified searching criteria. |
| Search(EwsFolderId, EwsItemFields, EwsSearchParameter[]) | Searches a folder for messages that match the specified searching criteria. |
| Search(EwsFolderId, EwsPageView, EwsSearchParameter[]) | Searches a folder for messages that match the specified searching criteria. |
| Search(EwsFolderId, EwsSearchParameter[]) | Searches a folder for messages that match the specified searching criteria. |
| SearchAsync(EwsFolderId, EwsItemFields, EwsListView, EwsSearchParameter[], Object) | Searches a folder for messages that match the specified searching criteria. |
| SearchAsync(EwsFolderId, EwsItemFields, EwsListView, String, Object) | Searches a folder for messages that match the specified searching criteria. |
| SearchAsync(EwsFolderId, EwsItemFields, EwsPageView, EwsSearchParameter[], Object) | Searches a folder for messages that match the specified searching criteria. |
| SearchAsync(EwsFolderId, EwsItemFields, EwsSearchParameter[], Object) | Searches a folder for messages that match the specified searching criteria. |
| SearchAsync(EwsFolderId, EwsPageView, EwsSearchParameter[], Object) | Searches a folder for messages that match the specified searching criteria. |
| SearchAsync(EwsFolderId, EwsSearchParameter[], Object) | Searches a folder for messages that match the specified searching criteria. |
| SearchItems(EwsFolderId, EwsItemFields, EwsListView, EwsSearchParameter[]) | Searches a folder for items that match the specified searching criteria. |
| SearchItems(EwsFolderId, EwsItemFields, EwsListView, String) | Searches a folder for items that match the specified searching criteria. |
| SearchItems(EwsFolderId, EwsItemFields, EwsPageView, EwsSearchParameter[]) | Searches a folder for items that match the specified searching criteria. |
| SearchItems(EwsFolderId, EwsItemFields, EwsSearchParameter[]) | Searches a folder for items that match the specified searching criteria. |
| SearchItems(EwsFolderId, EwsPageView, EwsSearchParameter[]) | Searches a folder for items that match the specified searching criteria. |
| SearchItems(EwsFolderId, EwsSearchParameter[]) | Searches a folder for items that match the specified searching criteria. |
| SearchItemsAsync(EwsFolderId, EwsItemFields, EwsListView, EwsSearchParameter[], Object) | Searches a folder for items that match the specified searching criteria. |
| SearchItemsAsync(EwsFolderId, EwsItemFields, EwsListView, String, Object) | Searches a folder for items that match the specified searching criteria. |
| SearchItemsAsync(EwsFolderId, EwsItemFields, EwsPageView, EwsSearchParameter[], Object) | Searches a folder for items that match the specified searching criteria. |
| SearchItemsAsync(EwsFolderId, EwsItemFields, EwsSearchParameter[], Object) | Searches a folder for items that match the specified searching criteria. |
| SearchItemsAsync(EwsFolderId, EwsPageView, EwsSearchParameter[], Object) | Searches a folder for items that match the specified searching criteria. |
| SearchItemsAsync(EwsFolderId, EwsSearchParameter[], Object) | Searches a folder for items that match the specified searching criteria. |
| SendMessage(MailMessage) | Sends a mail message and saves it to the 'Sent Items' folder. |
| SendMessage(MailMessage, EwsFolderId) | Sends a mail message. |
| SendMessage(MailMessage, EwsFolderId, Nullable<DateTime>) | Sends a mail message. |
| SendMessage(MimeMessage) | Sends a MIME message and saves it to the 'Sent Items' folder. |
| SendMessage(MimeMessage, EwsFolderId) | Sends a MIME message. |
| SendMessage(MimeMessage, EwsFolderId, Nullable<DateTime>) | Sends a MIME message. |
| SendMessage(EwsItemId) | Sends a message stored in exchange server and moves it to the 'Sent Items' folder. |
| SendMessage(EwsItemId, EwsFolderId) | Sends a message stored in exchange server. |
| SendMessage(String, String, EwsMessageBody) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessage(String, String, EwsMessageBody, EwsFolderId) | Sends a message composed from the arguments. |
| SendMessage(String, String, String) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessage(String, String, String, EwsFolderId) | Sends a message composed from the arguments. |
| SendMessage(String, String, String, EwsMessageBody) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessage(String, String, String, EwsMessageBody, EwsFolderId) | Sends a message composed from the arguments. |
| SendMessage(String, String, String, String) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessage(String, String, String, String, EwsFolderId) | Sends a message composed from the arguments. |
| SendMessageAsync(MailMessage, EwsFolderId, Nullable<DateTime>, Object) | Sends a mail message. |
| SendMessageAsync(MailMessage, EwsFolderId, Object) | Sends a mail message. |
| SendMessageAsync(MailMessage, Object) | Sends a mail message and saves it to the 'Sent Items' folder. |
| SendMessageAsync(MimeMessage, EwsFolderId, Nullable<DateTime>, Object) | Sends a MIME message. |
| SendMessageAsync(MimeMessage, EwsFolderId, Object) | Sends a MIME message. |
| SendMessageAsync(MimeMessage, Object) | Sends a MIME message and saves it to the 'Sent Items' folder. |
| SendMessageAsync(EwsItemId, EwsFolderId, Object) | Sends a message stored in exchange server. |
| SendMessageAsync(EwsItemId, Object) | Sends a message stored in exchange server and moves it to the 'Sent Items' folder. |
| SendMessageAsync(String, String, EwsMessageBody, EwsFolderId, Object) | Sends a message composed from the arguments. |
| SendMessageAsync(String, String, EwsMessageBody, Object) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessageAsync(String, String, String, EwsFolderId, Object) | Sends a message composed from the arguments. |
| SendMessageAsync(String, String, String, EwsMessageBody, EwsFolderId, Object) | Sends a message composed from the arguments. |
| SendMessageAsync(String, String, String, EwsMessageBody, Object) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessageAsync(String, String, String, Object) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SendMessageAsync(String, String, String, String, EwsFolderId, Object) | Sends a message composed from the arguments. |
| SendMessageAsync(String, String, String, String, Object) | Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
| SetSocketFactory(ISocketFactory) | Sets the socket factory to be used to create communication sockets. |
| StoreItem(EwsFolderId, EwsItemInfo) | Stores an item to an exchange folder. |
| StoreItemAsync(EwsFolderId, EwsItemInfo, Object) | Stores an item to an exchange folder. |
| StoreMessage(EwsFolderId, MailMessage) | Stores a mail message to an exchange folder. |
| StoreMessage(EwsFolderId, MimeMessage) | Stores a MIME message to an exchange folder. |
| StoreMessageAsync(EwsFolderId, MailMessage, Object) | Stores a mail message to an exchange folder. |
| StoreMessageAsync(EwsFolderId, MimeMessage, Object) | Stores a MIME message to an exchange folder. |
| ToString() | Returns a string representation of this object. |
| UpdateItem(EwsItemId, EwsItemMetadata) | Updates existing item with specified metadata. |
| UpdateItemAsync(EwsItemId, EwsItemMetadata, Object) | Updates existing item with specified metadata. |
Events
| Name | Description |
|---|---|
| ValidatingCertificate | Occurs when a server certificate needs to be validated. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IAsyncDisposable.DisposeAsync() | Disposes this Ews object. |