Ews Class
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9147)
Provides methods for communication with Exchange Web Service.
Syntax
public class Ews : NetworkSession, ILogWriterProvider, IDisposable
Inherited Members
Constructors
Name | Description |
---|---|
Ews() | Initializes Exchange Web Service client. |
Properties
Name | Description |
---|---|
Default |
Gets or sets a default log writer used by all new instances of Network |
Delete |
Gets or sets the mode for delete operations whether to delete entities to Deleted Items folder or delete it permanently. |
Instance |
Gets instance ID (intended for logging purposes).
Inherited from Network |
Is |
Gets a value indicating whether the Ews object is authenticated to an Exchange server. |
Is |
Gets a value indicating whether there is any operation (method) in progress. |
Is |
Gets a value indicating whether the Ews object is connected to an Exchange server. |
Log |
Gets or sets the Log |
Proxy | Gets or sets the network proxy to use to access a remote server. |
Server | Gets information of the Exchange server. The value is available after successful authentication. |
Server |
Gets the server name, if available.
Inherited from Network |
Server |
Gets the server port, if available.
Inherited from Network |
Settings | Gets or sets an Ews |
Timeout | Gets or sets the length of time in milliseconds before the operation times out. |
Tls |
Returns the TLS/SSL socket of secured connection. |
User |
Gets the authenticated user name, if available.
Inherited from Network |
Methods
Name | Description |
---|---|
Add |
Add a mail message as new attachment to an exchange item. |
Add |
Adds a MIME message as new attachment to an exchange item. |
Add |
Adds a file as new attachment to an exchange item. |
Add |
Add a MIME raw data as new attachment to an exchange item. |
Add |
Adds a stream as new attachment to an exchange item. |
Add |
Adds a stream as new attachment to an exchange item. |
Add |
Adds a file as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Add a mail message as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Adds a MIME message as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Add a MIME raw data as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Adds a stream as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Adds a stream as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Adds a file as new attachment to an exchange item. |
Add |
Begins asynchronous AddAttachment operation. Adds a file as new attachment to an exchange item. |
Connect(String) | Connects to an Exchange Server using HTTPS. |
Connect(String, Ssl |
Connects to an Exchange server using the specified TLS/SSL mode (None for HTTP, Implicit for HTTPS). |
Connect(String, Int32, Ssl |
Connects to an Exchange server using specified port and TLS/SSL mode. |
Connect |
Begins asynchronous Connect operation. Connects to an Exchange server using the specified TLS/SSL mode (None for HTTP, Implicit for HTTPS). |
Connect |
Begins asynchronous Connect operation. Connects to an Exchange server using specified port and TLS/SSL mode. |
Connect |
Begins asynchronous Connect operation. Connects to an Exchange Server using HTTPS. |
Copy |
Copies an exchange folder with its content into another exchange folder. |
Copy |
Begins asynchronous CopyFolder operation. Copies an exchange folder with its content into another exchange folder. |
Copy |
Copies an item to specified exchange folder. |
Copy |
Begins asynchronous CopyItem operation. Copies an item to specified exchange folder. |
Create |
Creates new subfolder in an exchange folder. |
Create |
Begins asynchronous CreateFolder operation. Creates new subfolder in an exchange folder. |
Delete |
Deletes an attachment identified by its ID. |
Delete |
Begins asynchronous DeleteAttachment operation. Deletes an attachment identified by its ID. |
Delete |
Deletes an exchange folder. Use Delete |
Delete |
Begins asynchronous DeleteFolder operation.
Deletes an exchange folder. Use Delete |
Delete |
Deletes content of an exchange folder. Folder itself remains.
To delete the folder as well, see Delete |
Delete |
Begins asynchronous DeleteFolderContent operation.
Deletes content of an exchange folder. Folder itself remains.
To delete the folder as well, see Delete |
Delete |
Deletes an item specified by its ID. Use Delete |
Delete |
Deletes an item specified by its ID. |
Delete |
Begins asynchronous DeleteItem operation. Deletes an item specified by its ID. |
Delete |
Begins asynchronous DeleteItem operation.
Deletes an item specified by its ID. Use Delete |
Disconnect() | Disconnects from the Exchange server. |
Disconnect |
Begins asynchronous Disconnect operation. Disconnects from the Exchange server. |
Dispose() | Disposes this Ews object. |
Export |
Exports message in its exchange format. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
Export |
Begins asynchronous ExportItem operation. Exports message in its exchange format. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
Find |
Finds a folder with given name in a parent folder. |
Find |
Begins asynchronous FindFolder operation. Finds a folder with given name in a parent folder. |
Folder |
Detects whether a folder with specified ID still exists. |
Folder |
Detects whether a folder with specified name exists under a parent folder. |
Folder |
Begins asynchronous FolderExists operation. Detects whether a folder with specified ID still exists. |
Folder |
Begins asynchronous FolderExists operation. Detects whether a folder with specified name exists under a parent folder. |
Get |
Gets an attachment identified by its ID. |
Get |
Begins asynchronous GetAttachment operation. Gets an attachment identified by its ID. |
Get |
Gets full ID (native Exchange ID and Change key) of an exchange folder. |
Get |
Gets full ID (native Exchange ID and Change key) of a special exchange folder. |
Get |
Begins asynchronous GetFolderId operation. Gets full ID (native Exchange ID and Change key) of an exchange folder. |
Get |
Begins asynchronous GetFolderId operation. Gets full ID (native Exchange ID and Change key) of a special exchange folder. |
Get |
Gets information about an exchange folder identified by its ID. |
Get |
Begins asynchronous GetFolderInfo operation. Gets information about an exchange folder identified by its ID. |
Get |
Gets a list of subfolders of the folder root. |
Get |
Gets a list of subfolders of the specified folder. Operation is shallow, which means that only first level of subfolders is returned. |
Get |
Gets a list of subfolders of the specified folder. |
Get |
Begins asynchronous GetFolderList operation. Gets a list of subfolders of the specified folder. |
Get |
Begins asynchronous GetFolderList operation. Gets a list of subfolders of the specified folder. Operation is shallow, which means that only first level of subfolders is returned. |
Get |
Begins asynchronous GetFolderList operation. Gets a list of subfolders of the folder root. |
Get |
Gets hash code for this object.
Inherited from Network |
Get |
Downloads and saves an item to specified stream in specified format. |
Get |
Downloads and saves an item to specified path in specified format. |
Get |
Begins asynchronous GetItem operation. Downloads and saves an item to specified stream in specified format. |
Get |
Begins asynchronous GetItem operation. Downloads and saves an item to specified path in specified format. |
Get |
Gets the information about an item with default set of properties retrieved. |
Get |
Gets the information about an item with specified set of properties retrieved. |
Get |
Begins asynchronous GetItemInfo operation. Gets the information about an item with specified set of properties retrieved. |
Get |
Begins asynchronous GetItemInfo operation. Gets the information about an item with default set of properties retrieved. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetItemList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetItemList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetItemList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetItemList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetItemList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Gets a Mail |
Get |
Begins asynchronous GetMailMessage operation.
Gets a Mail |
Get |
Downloads and saves a message to specified stream in MIME format. |
Get |
Downloads and saves a message to specified path in MIME format. |
Get |
Begins asynchronous GetMessage operation. Downloads and saves a message to specified stream in MIME format. |
Get |
Begins asynchronous GetMessage operation. Downloads and saves a message to specified path in MIME format. |
Get |
Gets the information about a message with default set of properties retrieved. |
Get |
Gets the information about a message with specified set of properties retrieved. |
Get |
Begins asynchronous GetMessageInfo operation. Gets the information about a message with specified set of properties retrieved. |
Get |
Begins asynchronous GetMessageInfo operation. Gets the information about a message with default set of properties retrieved. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetMessageList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetMessageList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetMessageList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetMessageList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Begins asynchronous GetMessageList operation. Lists specified folder to retrieve collection of containing items. |
Get |
Gets a Mime |
Get |
Begins asynchronous GetMimeMessage operation.
Gets a Mime |
Get |
Gets the list of supported authentication methods. |
Get |
Receives changes that occurred since the last checkpoint. |
Get |
Begins asynchronous GetUpdatedFolders operation. Receives changes that occurred since the last checkpoint. |
Get |
Receives changes that occured since the last checkpoint. |
Get |
Begins asynchronous GetUpdatedItems operation. Receives changes that occured since the last checkpoint. |
Import |
Imports an item in exchange format to specified exchange folder. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
Import |
Begins asynchronous ImportItem operation. Imports an item in exchange format to specified exchange folder. This method is supported in Exchange 2010 SP1 (14.1.218.15) and newer. |
Item |
Detects whether an item with specified ID still exists. |
Item |
Begins asynchronous ItemExists operation. Detects whether an item with specified ID still exists. |
Login(Ews |
Authenticates the user to the Exchange server using the specified authentication method that does not require credentials (NTLM, Kerberos or Negotiate). |
Login(String, Ews |
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, Ews |
Authenticates the user to the Exchange server. |
Login |
Begins asynchronous Login operation. Authenticates the user to the Exchange server using the specified authentication method that does not require credentials (NTLM, Kerberos or Negotiate). |
Login |
Begins asynchronous Login operation. Authenticates the user to the Exchange server using an OAuth access token. |
Login |
Begins asynchronous Login operation. Authenticates the user to the Exchange server. |
Login |
Begins asynchronous Login operation. Authenticates the user to the Exchange server. |
Move |
Moves an exchange folder with its content into another exchange folder. |
Move |
Begins asynchronous MoveFolder operation. Moves an exchange folder with its content into another exchange folder. |
Move |
Moves an item to specified exchange folder. |
Move |
Begins asynchronous MoveItem operation. Moves an item to specified exchange folder. |
Provision |
Provision custom X-Headers on an Exchange server. |
Provision |
Begins asynchronous ProvisionHeaders operation. Provision custom X-Headers on an Exchange server. |
Rename |
Renames an exchange folder. |
Rename |
Begins asynchronous RenameFolder operation. Renames an exchange folder. |
Resolve |
Searches Exchange users and Contacts for the specified name. |
Resolve |
Begins asynchronous ResolveNames operation. Searches Exchange users and Contacts for the specified name. |
Search(Ews |
Searches a folder for messages that match the specified searching criteria. |
Search(Ews |
Searches a folder for messages that match the specified searching criteria. |
Search(Ews |
Searches a folder for messages that match the specified searching criteria. |
Search(Ews |
Searches a folder for messages that match the specified searching criteria. |
Search(Ews |
Searches a folder for messages that match the specified searching criteria. |
Search(Ews |
Searches a folder for messages that match the specified searching criteria. |
Search |
Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria. |
Search |
Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria. |
Search |
Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria. |
Search |
Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria. |
Search |
Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria. |
Search |
Begins asynchronous Search operation. Searches a folder for messages that match the specified searching criteria. |
Search |
Searches a folder for items that match the specified searching criteria. |
Search |
Searches a folder for items that match the specified searching criteria. |
Search |
Searches a folder for items that match the specified searching criteria. |
Search |
Searches a folder for items that match the specified searching criteria. |
Search |
Searches a folder for items that match the specified searching criteria. |
Search |
Searches a folder for items that match the specified searching criteria. |
Search |
Begins asynchronous SearchItems operation. Searches a folder for items that match the specified searching criteria. |
Search |
Begins asynchronous SearchItems operation. Searches a folder for items that match the specified searching criteria. |
Search |
Begins asynchronous SearchItems operation. Searches a folder for items that match the specified searching criteria. |
Search |
Begins asynchronous SearchItems operation. Searches a folder for items that match the specified searching criteria. |
Search |
Begins asynchronous SearchItems operation. Searches a folder for items that match the specified searching criteria. |
Search |
Begins asynchronous SearchItems operation. Searches a folder for items that match the specified searching criteria. |
Send |
Sends a mail message and saves it to the 'Sent Items' folder. |
Send |
Sends a mail message. |
SendMessage(MailMessage, EwsFolderId, Nullable<DateTime>) | Sends a mail message. |
Send |
Sends a MIME message and saves it to the 'Sent Items' folder. |
Send |
Sends a MIME message. |
SendMessage(MimeMessage, EwsFolderId, Nullable<DateTime>) | Sends a MIME message. |
Send |
Sends a message stored in exchange server and moves it to the 'Sent Items' folder. |
Send |
Sends a message stored in exchange server. |
Send |
Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Sends a message composed from the arguments. |
Send |
Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Sends a message composed from the arguments. |
Send |
Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Sends a message composed from the arguments. |
Send |
Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Sends a message composed from the arguments. |
SendMessageAsync(MailMessage, EwsFolderId, Nullable<DateTime>, Object) | Begins asynchronous SendMessage operation. Sends a mail message. |
Send |
Begins asynchronous SendMessage operation. Sends a mail message. |
Send |
Begins asynchronous SendMessage operation. Sends a mail message and saves it to the 'Sent Items' folder. |
SendMessageAsync(MimeMessage, EwsFolderId, Nullable<DateTime>, Object) | Begins asynchronous SendMessage operation. Sends a MIME message. |
Send |
Begins asynchronous SendMessage operation. Sends a MIME message. |
Send |
Begins asynchronous SendMessage operation. Sends a MIME message and saves it to the 'Sent Items' folder. |
Send |
Begins asynchronous SendMessage operation. Sends a message stored in exchange server. |
Send |
Begins asynchronous SendMessage operation. Sends a message stored in exchange server and moves it to the 'Sent Items' folder. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments. |
Send |
Begins asynchronous SendMessage operation. Sends a message composed from the arguments and stores it to the 'Sent Items' folder. |
Set |
Sets the socket factory to be used to create communication sockets. |
Store |
Stores an item to an exchange folder. |
Store |
Begins asynchronous StoreItem operation. Stores an item to an exchange folder. |
Store |
Stores a mail message to an exchange folder. |
Store |
Stores a MIME message to an exchange folder. |
Store |
Begins asynchronous StoreMessage operation. Stores a mail message to an exchange folder. |
Store |
Begins asynchronous StoreMessage operation. Stores a MIME message to an exchange folder. |
To |
Returns a string representation of this object. |
Update |
Updates existing item with specified metadata. |
Update |
Begins asynchronous UpdateItem operation. Updates existing item with specified metadata. |
Events
Name | Description |
---|---|
Validating |
Occurs when a server certificate needs to be validated. |