Inherits Aspose::Email::Clients::Exchange::ExchangeClientBase.
Public Member Functions | |
System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate > | get_ClientCertificate () const |
Gets the client certificate. More... | |
void | set_ClientCertificate (System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate > value) |
Sets the client certificate. More... | |
bool | get_KeepAlive () const |
Indicates whether to keep alive. More... | |
void | set_KeepAlive (bool value) |
Indicates whether to keep alive. More... | |
bool | get_PreAuthenticate () const |
Indicates whether to do pre-authentication. More... | |
void | set_PreAuthenticate (bool value) |
Indicates whether to do pre-authentication. More... | |
System::SharedPtr< System::Text::Encoding > | get_Encoding () const |
Gets the encoding. More... | |
void | set_Encoding (System::SharedPtr< System::Text::Encoding > value) |
Sets the encoding. More... | |
System::SharedPtr< ExchangeMailboxInfo > | get_MailboxInfo () |
Gets the mailbox information. More... | |
System::SharedPtr< System::Net::CookieContainer > | get_CookieContainer () const |
Gets the cookie container. More... | |
void | set_CookieContainer (System::SharedPtr< System::Net::CookieContainer > value) |
Sets the cookie container. More... | |
bool | get_SendChunked () const |
Gets a value indicating whether [send chunked]. More... | |
void | set_SendChunked (bool value) |
Sets a value indicating whether [send chunked]. More... | |
ExchangeClient (System::String mailboxUri, System::String username, System::String password) | |
Initialize a new instance of the class ExchageClient More... | |
ExchangeClient (System::String mailboxUri, System::String username, System::String password, System::String domain) | |
Initialize a new instance of the class ExchageClient More... | |
ExchangeClient (System::String mailboxUri, System::SharedPtr< System::Net::ICredentials > credentials) | |
Initialize a new instance of the class ExchageClient More... | |
void | MoveMessage (System::SharedPtr< ExchangeMessageInfo > msgInfo, System::String destinationFolderUri) |
Moves the message. More... | |
void | MoveMessage (System::SharedPtr< ExchangeMessageInfo > msgInfo, System::String destinationFolderUri, bool overwrite) |
Moves the message. More... | |
void | MoveMessage (System::String destinationFolderUri, System::String messageUri) |
Moves the message. More... | |
void | MoveMessage (System::String destinationFolderUri, bool overwrite, System::String messageUri) |
Moves the message. More... | |
void | MoveItems (System::String destinationFolderUri, const System::ArrayPtr< System::String > &itemsUriArray) |
Moves items. More... | |
void | MoveItems (System::String destinationFolderUri, bool overwrite, const System::ArrayPtr< System::String > &itemsUriArray) |
Moves items. More... | |
int64_t | GetMailboxSize () |
Get the size of the maibox More... | |
int64_t | GetMailboxSize (System::String mailbox) |
Get the size of the maibox More... | |
System::SharedPtr< ExchangeMailboxInfo > | GetMailboxInfo () |
Get the information of the mailbox More... | |
System::String | GetVersionInfo () |
Returns exchange server version info More... | |
System::SharedPtr< ExchangeMailboxInfo > | GetMailboxInfo (System::String mailbox) |
Gets the mailbox information More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, System::String messageClass, bool recursive) |
Lists the messages. More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, bool recursive) |
List the messages in the specified folder More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, System::String query) |
Lists the messages. More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > query, bool recursive) |
Lists the messages. More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessagesById (System::String folder, System::String messageId) |
Lists the messages by id. More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, ExchangeListMessagesOptions options) |
Lists the mail message in the specified folder. More... | |
void | SaveMessage (System::String messageUri, System::String path) |
Saves mail message specified by the uri to local file system. The mail message file is RFC 822 compliant format (EML). More... | |
void | SaveMessage (System::String messageUri, System::SharedPtr< System::IO::Stream > stream) |
Saves the message. More... | |
void | Send (System::SharedPtr< MailMessage > message) |
Sends the mail message. More... | |
void | SetReadFlag (System::String messageUri) |
Marks the specifeid message as read. More... | |
void | SetReadFlag (System::String messageUri, bool suppressReceipt) |
Marks the specifeid message as read. More... | |
System::SharedPtr< ExchangeFolderInfoCollection > | ListPublicFolders () |
Gets collection of public folders from root public folder More... | |
System::SharedPtr< ExchangeFolderInfoCollection > | ListSubFolders (System::String parentFolderUri) |
Gets collection of child folders from parent More... | |
System::SharedPtr< MailMessage > | FetchMessage (System::String messageUri) |
Fetches the mail message with specified uri. More... | |
System::SharedPtr< Aspose::Email::Mapi::MapiMessage > | FetchMapiMessage (System::String messageUri) |
Fetches the mapi message with specified uri. More... | |
void | DeleteMessage (System::String messageUri) |
Deletes the mail message. More... | |
void | DeleteMessage (System::String messageUri, bool suppressReceipt) |
Deletes the mail message. More... | |
System::String | AppendMessage (System::String folder, System::SharedPtr< MailMessage > message) |
Uploads the mail message to the specified folder More... | |
System::String | AppendMessage (System::String folder, System::SharedPtr< MailMessage > message, bool markAsSent) |
Uploads the mail message to the specified folder More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, int32_t maxNumberOfMessages, ExchangeListMessagesOptions options) |
List the messages in the specified folder More... | |
System::SharedPtr< Attachment > | FetchAttachment (System::String attachmentUri) |
Fetches the attachment More... | |
void | Backup (System::SharedPtr< ExchangeFolderInfoCollection > folders, System::String fileName, Aspose::Email::Storage::Pst::BackupOptions options) |
Backups the content of the specified folders More... | |
void | Backup (System::SharedPtr< ExchangeFolderInfoCollection > folders, System::SharedPtr< System::IO::Stream > stream, Aspose::Email::Storage::Pst::BackupOptions options) |
Backups the content of the specified folders More... | |
System::SharedPtr< ExchangeFolderInfo > | GetFolderInfo (System::String folderUri) |
Gets the folder information. More... | |
bool | FolderExists (System::String parentFolderUri, System::String folderName, System::SharedPtr< ExchangeFolderInfo > &folder) |
Checks whether the specified folder exists. More... | |
void | CreateFolder (System::String parentFolderUri, System::String name) |
Creates the new folder with the specified name in the specified parent folder. More... | |
void | DeleteFolder (System::String folderUri) |
Deletes the folder More... | |
void | Restore (System::String fileName, Aspose::Email::Storage::Pst::RestoreOptions options) |
Restores exchange folders from the specified personal storage file. More... | |
void | Restore (System::SharedPtr< System::IO::Stream > stream, Aspose::Email::Storage::Pst::RestoreOptions options) |
Restores exchange folders from the given personal storage. More... | |
void | Restore (System::SharedPtr< Aspose::Email::Storage::Pst::PersonalStorage > pst, Aspose::Email::Storage::Pst::RestoreOptions options) |
Restores exchange folders from the given personal storage. More... | |
void | Restore (System::String fileName, System::SharedPtr< ExchangeFolderInfoCollection > folders, Aspose::Email::Storage::Pst::RestoreOptions options) |
Restores the specified exchange folders from the specified personal storage file. More... | |
void | Restore (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< ExchangeFolderInfoCollection > folders, Aspose::Email::Storage::Pst::RestoreOptions options) |
Restores the specified exchange folders from the given personal storage. More... | |
void | Restore (System::SharedPtr< Aspose::Email::Storage::Pst::PersonalStorage > pst, System::SharedPtr< ExchangeFolderInfoCollection > folders, Aspose::Email::Storage::Pst::RestoreOptions options) |
Restores the specified exchange folders from the given personal storage. More... | |
int64_t | ReadLong (System::SharedPtr< System::IO::Stream > input) |
System::String | ParseQuery (System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > query) |
Parses the query. More... | |
System::ArrayPtr< System::SharedPtr< CustomExchangeStoreProperty > > | GetCustomProperties (System::String address) |
Gets custom properties of the specified object on the server More... | |
System::ArrayPtr< System::SharedPtr< ExchangeStoreProperty > > | GetProperties (System::String address, System::ArrayPtr< System::SharedPtr< ExchangeStorePropertyName >> propertyName) |
System::SharedPtr< MailMessage > | GetMimeMessage (System::String messageUri) |
System::String | CreateContact (System::SharedPtr< Aspose::Email::PersonalInfo::Contact > contact) |
Creates a contact item in the Exchange store. More... | |
void | DeleteContact (System::SharedPtr< Aspose::Email::PersonalInfo::Contact > contact) |
Deletes the contact. More... | |
void | DeleteContact (System::SharedPtr< Aspose::Email::Mapi::MapiContact > contact) |
Deletes the contact. More... | |
void | DeleteContact (System::String id) |
Deletes the contact. More... | |
System::ArrayPtr< System::SharedPtr< Aspose::Email::PersonalInfo::Contact > > | GetContacts (System::String folderUri) |
Lists contacts located in the specified folder on server More... | |
System::ArrayPtr< System::SharedPtr< Aspose::Email::Mapi::MapiContact > > | ListContacts (System::String folderUri) |
Lists contacts located in the specified folder on server More... | |
System::ArrayPtr< System::SharedPtr< Aspose::Email::PersonalInfo::Contact > > | ResolveContacts (System::String unresolvedEntry) |
Resolves ambiguous mailbox display names. Note: the maximum count of returned contacts is 100. This is a restriction of used exchange command. More... | |
System::SharedPtr< Aspose::Email::Mapi::MapiContactCollection > | ListMailboxes () |
Lists mailboxes in the global address list. More... | |
System::ArrayPtr< System::SharedPtr< Aspose::Email::PersonalInfo::Contact > > | GetMailboxes () |
Lists mailboxes in the global address list. More... | |
System::SharedPtr< ExchangeFolderInfoCollection > | ListSubFolders (System::SharedPtr< ExchangeFolderInfo > parentFolder) |
Gets collection of child public folders from parent More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder) |
Lists the messages. More... | |
System::SharedPtr< ExchangeMessageInfoCollection > | ListMessages (System::String folder, int32_t maxNumberOfMessages) |
Lists the messages. More... | |
bool | FolderExists (System::String parentFolderUri, System::String folderName) |
Checks whether the specified folder exists. More... | |
Public Member Functions inherited from Aspose::Email::Clients::Exchange::ExchangeClientBase | |
System::SharedPtr< System::Net::IWebProxy > | get_Proxy () override |
Gets the proxy. More... | |
void | set_Proxy (System::SharedPtr< System::Net::IWebProxy > value) override |
Sets the proxy. More... | |
System::SharedPtr< System::Net::ICredentials > | get_Credentials () override |
Gets the credentials More... | |
void | set_Credentials (System::SharedPtr< System::Net::ICredentials > value) override |
Sets the credentials More... | |
System::String | get_MailboxUri () override |
Gets the mailbox uri More... | |
void | set_MailboxUri (System::String value) override |
Sets the mailbox uri More... | |
int32_t | get_Timeout () override |
Gets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). More... | |
void | set_Timeout (int32_t value) override |
Sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). More... | |
System::String | get_LogFileName () override |
Gets log file name More... | |
void | set_LogFileName (System::String value) override |
Sets log file name More... | |
bool | get_UseDateInLogFileName () override |
Gets value which indicates if date has to be used in log file name. More... | |
void | set_UseDateInLogFileName (bool value) override |
Sets value which indicates if date has to be used in log file name. More... | |
System::SharedPtr< Aspose::Email::Tools::Logging::Logger > | get_Logger () |
Diagnostic logger More... | |
ExchangeClientBase (System::String mailboxUri, System::SharedPtr< System::Net::ICredentials > credentials, System::SharedPtr< System::Net::IWebProxy > proxy, System::SharedPtr< ExchangeLogger > exchangeLogger=nullptr) | |
Initializes a new instance of the ExchangeClientBase class More... | |
void | Dispose () override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Static Public Member Functions | |
static System::String | Decode (System::String content) |
Additional Inherited Members | |
Public Attributes inherited from Aspose::Email::Clients::Exchange::ExchangeClientBase | |
System::SharedPtr< System::Object > | lockObject |
Protected Member Functions inherited from Aspose::Email::Clients::Exchange::ExchangeClientBase | |
void | ResetLogSettings () |
Resets logging settings to default. More... | |
virtual void | Dispose (bool disposing) |
Releases unmanaged and - optionally - managed resources More... | |
The ExchangeClient class allows applications to manage E-Mail box in Microsoft Exchange Server by using WebDav Exchange Store Protocol.
Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ExchangeClient | ( | System::String | mailboxUri, |
System::String | username, | ||
System::String | password | ||
) |
Initialize a new instance of the class ExchageClient
mailboxUri | The url of the mailbox |
username | The username of the mailbox |
password | The password of the mailbox |
Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ExchangeClient | ( | System::String | mailboxUri, |
System::String | username, | ||
System::String | password, | ||
System::String | domain | ||
) |
Initialize a new instance of the class ExchageClient
mailboxUri | The url of the mailbox |
username | The username of the mailbox |
password | The password of the mailbox |
domain | The domain of the user |
Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ExchangeClient | ( | System::String | mailboxUri, |
System::SharedPtr< System::Net::ICredentials > | credentials | ||
) |
Initialize a new instance of the class ExchageClient
mailboxUri | The url of the mailbox |
credentials | The credentials used to log in |
System::String Aspose::Email::Clients::Exchange::Dav::ExchangeClient::AppendMessage | ( | System::String | folder, |
System::SharedPtr< MailMessage > | message | ||
) |
Uploads the mail message to the specified folder
folder | A folder to which message is uploaded |
message | A message to upload |
AsposeArgumentException | A folder is not specified |
AsposeArgumentNullException | message is null |
System::String Aspose::Email::Clients::Exchange::Dav::ExchangeClient::AppendMessage | ( | System::String | folder, |
System::SharedPtr< MailMessage > | message, | ||
bool | markAsSent | ||
) |
Uploads the mail message to the specified folder
folder | An uri of folder to which message is uploaded |
message | A message to upload |
markAsSent | A value indicating whether the message should be appended as a sent message or a draft. |
AsposeArgumentException | A folder is not specified |
AsposeArgumentNullException | message is null |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Backup | ( | System::SharedPtr< ExchangeFolderInfoCollection > | folders, |
System::SharedPtr< System::IO::Stream > | stream, | ||
Aspose::Email::Storage::Pst::BackupOptions | options | ||
) |
Backups the content of the specified folders
folders | A folders to backup |
stream | A stream to write into |
options | A backup options |
NotSupportedException | The given stream does not support writting |
AsposeArgumentNullException | folders or stream is null |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Backup | ( | System::SharedPtr< ExchangeFolderInfoCollection > | folders, |
System::String | fileName, | ||
Aspose::Email::Storage::Pst::BackupOptions | options | ||
) |
Backups the content of the specified folders
folders | A folders to backup |
fileName | A path to the presonal storage file |
options | A backup options |
AsposeArgumentException | A fileName is null or empty |
AsposeArgumentNullException | folders is null |
System::String Aspose::Email::Clients::Exchange::Dav::ExchangeClient::CreateContact | ( | System::SharedPtr< Aspose::Email::PersonalInfo::Contact > | contact | ) |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::CreateFolder | ( | System::String | parentFolderUri, |
System::String | name | ||
) |
Creates the new folder with the specified name in the specified parent folder.
parentFolderUri | An uri of parent folder. |
name | A name of folder to be created. |
AsposeArgumentException | parentFolderUri or name is null or empty . |
|
static |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::DeleteContact | ( | System::SharedPtr< Aspose::Email::Mapi::MapiContact > | contact | ) |
Deletes the contact.
contact | Contact |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::DeleteContact | ( | System::SharedPtr< Aspose::Email::PersonalInfo::Contact > | contact | ) |
Deletes the contact.
contact | Contact |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::DeleteContact | ( | System::String | id | ) |
Deletes the contact.
id | The contact identifier. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::DeleteFolder | ( | System::String | folderUri | ) |
Deletes the folder
folderUri | The folder Uri |
AsposeArgumentException | folderUri is null or empty |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::DeleteMessage | ( | System::String | messageUri | ) |
Deletes the mail message.
messageUri | The message uri. |
AsposeArgumentException | messageUri is empty . |
AsposeArgumentNullException | messageUri is null . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::DeleteMessage | ( | System::String | messageUri, |
bool | suppressReceipt | ||
) |
Deletes the mail message.
messageUri | The message uri. |
suppressReceipt | A value indicating whether the sending a non-read report should be suppressed. |
AsposeArgumentException | messageUri is empty . |
AsposeArgumentNullException | messageUri is null . |
System::SharedPtr<Attachment> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::FetchAttachment | ( | System::String | attachmentUri | ) |
Fetches the attachment
attachmentUri | The attachment uri. (Attachment uri can be retrieved using ListMessages(folder, ExchangeListMessagesOptions.FetchAttachmentInformation) method) |
AsposeArgumentException | attachmentUri is null or empty |
System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::FetchMapiMessage | ( | System::String | messageUri | ) |
Fetches the mapi message with specified uri.
messageUri | The message uri. |
AsposeArgumentNullException | messageUri is null |
AsposeArgumentException | messageUri is empty string |
System::SharedPtr<MailMessage> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::FetchMessage | ( | System::String | messageUri | ) |
Fetches the mail message with specified uri.
messageUri | The message uri. |
bool Aspose::Email::Clients::Exchange::Dav::ExchangeClient::FolderExists | ( | System::String | parentFolderUri, |
System::String | folderName | ||
) |
Checks whether the specified folder exists.
parentFolderUri | An uri of parent folder. |
folderName | A folder name. |
AsposeArgumentException | parentFolderUri or folderName is null or empty |
true
if the specified folder exists in the specified parent folder; otherwise, false
.bool Aspose::Email::Clients::Exchange::Dav::ExchangeClient::FolderExists | ( | System::String | parentFolderUri, |
System::String | folderName, | ||
System::SharedPtr< ExchangeFolderInfo > & | folder | ||
) |
Checks whether the specified folder exists.
parentFolderUri | An uri of parent folder. |
folderName | A folder name. |
folder | A ExchangeFolderInfo that represents the found folder information, if folder exists. |
AsposeArgumentException | parentFolderUri or folderName is null or empty |
true
if the specified folder exists in the specified parent folder; otherwise, false
.System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_ClientCertificate | ( | ) | const |
Gets the client certificate.
System::SharedPtr<System::Net::CookieContainer> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_CookieContainer | ( | ) | const |
Gets the cookie container.
The cookie container.
System::SharedPtr<System::Text::Encoding> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_Encoding | ( | ) | const |
Gets the encoding.
bool Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_KeepAlive | ( | ) | const |
Indicates whether to keep alive.
System::SharedPtr<ExchangeMailboxInfo> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_MailboxInfo | ( | ) |
Gets the mailbox information.
bool Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_PreAuthenticate | ( | ) | const |
Indicates whether to do pre-authentication.
bool Aspose::Email::Clients::Exchange::Dav::ExchangeClient::get_SendChunked | ( | ) | const |
Gets a value indicating whether [send chunked].
true
if [send chunked]; otherwise, false
.
System::ArrayPtr<System::SharedPtr<Aspose::Email::PersonalInfo::Contact> > Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetContacts | ( | System::String | folderUri | ) |
Lists contacts located in the specified folder on server
folderUri | The URI of folder |
System::ArrayPtr<System::SharedPtr<CustomExchangeStoreProperty> > Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetCustomProperties | ( | System::String | address | ) |
Gets custom properties of the specified object on the server
address | The uri. |
System::SharedPtr<ExchangeFolderInfo> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetFolderInfo | ( | System::String | folderUri | ) |
Gets the folder information.
folderUri | A folder uri. |
AsposeArgumentException | folderUri is null or empty . |
ExchangeException | Server responded an error message. |
System::ArrayPtr<System::SharedPtr<Aspose::Email::PersonalInfo::Contact> > Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetMailboxes | ( | ) |
Lists mailboxes in the global address list.
System::SharedPtr<ExchangeMailboxInfo> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetMailboxInfo | ( | ) |
Get the information of the mailbox
System::SharedPtr<ExchangeMailboxInfo> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetMailboxInfo | ( | System::String | mailbox | ) |
Gets the mailbox information
mailbox | A mailbox to read from. Note: if mailbox is set to null or empty the default mailbox will be used |
int64_t Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetMailboxSize | ( | ) |
Get the size of the maibox
int64_t Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetMailboxSize | ( | System::String | mailbox | ) |
Get the size of the maibox
mailbox | A mailbox. Note: if it is set to null or empty the default mailbox will be used |
System::SharedPtr<MailMessage> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetMimeMessage | ( | System::String | messageUri | ) |
System::ArrayPtr<System::SharedPtr<ExchangeStoreProperty> > Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetProperties | ( | System::String | address, |
System::ArrayPtr< System::SharedPtr< ExchangeStorePropertyName >> | propertyName | ||
) |
System::String Aspose::Email::Clients::Exchange::Dav::ExchangeClient::GetVersionInfo | ( | ) |
Returns exchange server version info
System::ArrayPtr<System::SharedPtr<Aspose::Email::Mapi::MapiContact> > Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListContacts | ( | System::String | folderUri | ) |
Lists contacts located in the specified folder on server
folderUri | The URI of folder |
System::SharedPtr<Aspose::Email::Mapi::MapiContactCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMailboxes | ( | ) |
Lists mailboxes in the global address list.
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder | ) |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
bool | recursive | ||
) |
List the messages in the specified folder
folder | The folder Uri |
recursive | Indicates whether recursive listing or not. |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
ExchangeListMessagesOptions | options | ||
) |
Lists the mail message in the specified folder.
folder | The folder url |
options | Specifies the settings of listing |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
int32_t | maxNumberOfMessages | ||
) |
Lists the messages.
folder | The folder. |
maxNumberOfMessages | Maximum number of messages |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
int32_t | maxNumberOfMessages, | ||
ExchangeListMessagesOptions | options | ||
) |
List the messages in the specified folder
folder | The folder Uri |
maxNumberOfMessages | Maximum number of messages |
options | Specifies the settings of listing |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > | query, | ||
bool | recursive | ||
) |
Lists the messages.
folder | The Uri of folder that contains messages. |
query | The MailQuery that represents search criteria. |
recursive | Indicates whether recursive listing or not. |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
System::String | messageClass, | ||
bool | recursive | ||
) |
Lists the messages.
folder | The folder. |
messageClass | The message class. |
recursive | if set to true [recursive]. |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessages | ( | System::String | folder, |
System::String | query | ||
) |
Lists the messages.
folder | The folder. |
query | The query. |
System::SharedPtr<ExchangeMessageInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListMessagesById | ( | System::String | folder, |
System::String | messageId | ||
) |
Lists the messages by id.
folder | The folder. |
messageId | The message id. |
System::SharedPtr<ExchangeFolderInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListPublicFolders | ( | ) |
Gets collection of public folders from root public folder
System::SharedPtr<ExchangeFolderInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListSubFolders | ( | System::SharedPtr< ExchangeFolderInfo > | parentFolder | ) |
Gets collection of child public folders from parent
parentFolder | The parent ExchangeFolderInfo |
System::SharedPtr<ExchangeFolderInfoCollection> Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ListSubFolders | ( | System::String | parentFolderUri | ) |
Gets collection of child folders from parent
parentFolderUri | The uri of the parent folder |
AsposeArgumentException | parentFolderUri is null or empty |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::MoveItems | ( | System::String | destinationFolderUri, |
bool | overwrite, | ||
const System::ArrayPtr< System::String > & | itemsUriArray | ||
) |
Moves items.
destinationFolderUri | The new destination for items. |
overwrite | Specifies whether the server should overwrite a existing message while processing a MOVE operation. |
itemsUriArray | Items uri arrray |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::MoveItems | ( | System::String | destinationFolderUri, |
const System::ArrayPtr< System::String > & | itemsUriArray | ||
) |
Moves items.
destinationFolderUri | The new destination for items. |
itemsUriArray | Items uri arrray |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::MoveMessage | ( | System::SharedPtr< ExchangeMessageInfo > | msgInfo, |
System::String | destinationFolderUri | ||
) |
Moves the message.
msgInfo | Represents the E-Mail message info fetched from the Exchange Store. |
destinationFolderUri | An URI of a destination folder. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::MoveMessage | ( | System::SharedPtr< ExchangeMessageInfo > | msgInfo, |
System::String | destinationFolderUri, | ||
bool | overwrite | ||
) |
Moves the message.
msgInfo | Represents the E-Mail message info fetched from the Exchange Store. |
destinationFolderUri | An URI of a destination folder. |
overwrite | Specifies whether the server should overwrite a existing message while processing a MOVE operation. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::MoveMessage | ( | System::String | destinationFolderUri, |
bool | overwrite, | ||
System::String | messageUri | ||
) |
Moves the message.
destinationFolderUri | An URI of a destination folder. |
overwrite | Specifies whether the server should overwrite a existing message while processing a MOVE operation. |
messageUri | Represents the uri of E-Mail message. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::MoveMessage | ( | System::String | destinationFolderUri, |
System::String | messageUri | ||
) |
Moves the message.
destinationFolderUri | An URI of a destination folder. |
messageUri | Represents the uri of E-Mail message. |
System::String Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ParseQuery | ( | System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > | query | ) |
Parses the query.
query | The query. |
int64_t Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ReadLong | ( | System::SharedPtr< System::IO::Stream > | input | ) |
System::ArrayPtr<System::SharedPtr<Aspose::Email::PersonalInfo::Contact> > Aspose::Email::Clients::Exchange::Dav::ExchangeClient::ResolveContacts | ( | System::String | unresolvedEntry | ) |
Resolves ambiguous mailbox display names. Note: the maximum count of returned contacts is 100. This is a restriction of used exchange command.
unresolvedEntry | A name of contact to resolve. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Restore | ( | System::SharedPtr< Aspose::Email::Storage::Pst::PersonalStorage > | pst, |
Aspose::Email::Storage::Pst::RestoreOptions | options | ||
) |
Restores exchange folders from the given personal storage.
pst | A personal storage containing the backuped imap folders. |
options | Restore options. |
AsposeArgumentNullException | pst is null . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Restore | ( | System::SharedPtr< Aspose::Email::Storage::Pst::PersonalStorage > | pst, |
System::SharedPtr< ExchangeFolderInfoCollection > | folders, | ||
Aspose::Email::Storage::Pst::RestoreOptions | options | ||
) |
Restores the specified exchange folders from the given personal storage.
pst | A personal storage containing the backuped exchange folders. |
folders | A folders to be restored. |
options | Restore options. |
AsposeArgumentNullException | pst or folders is null . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Restore | ( | System::SharedPtr< System::IO::Stream > | stream, |
Aspose::Email::Storage::Pst::RestoreOptions | options | ||
) |
Restores exchange folders from the given personal storage.
stream | A stream containing personal storage. |
options | Restore options. |
NotSupportedException | The stream does not support reading. |
AsposeArgumentNullException | stream is null . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Restore | ( | System::SharedPtr< System::IO::Stream > | stream, |
System::SharedPtr< ExchangeFolderInfoCollection > | folders, | ||
Aspose::Email::Storage::Pst::RestoreOptions | options | ||
) |
Restores the specified exchange folders from the given personal storage.
stream | A stream containing personal storage. |
folders | A folders to be restored. |
options | Restore options. |
NotSupportedException | The stream does not support reading. |
AsposeArgumentNullException | stream or folders is null . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Restore | ( | System::String | fileName, |
Aspose::Email::Storage::Pst::RestoreOptions | options | ||
) |
Restores exchange folders from the specified personal storage file.
fileName | A path to personal storage file. |
options | Restore options. |
AsposeArgumentException | fileName is not specified. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Restore | ( | System::String | fileName, |
System::SharedPtr< ExchangeFolderInfoCollection > | folders, | ||
Aspose::Email::Storage::Pst::RestoreOptions | options | ||
) |
Restores the specified exchange folders from the specified personal storage file.
fileName | A path to personal storage file. |
folders | A folders to be restored. |
options | Restore options. |
AsposeArgumentException | fileName is not specified. |
AsposeArgumentNullException | folders is null . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::SaveMessage | ( | System::String | messageUri, |
System::SharedPtr< System::IO::Stream > | stream | ||
) |
Saves the message.
messageUri | The message URI. |
stream | The stream. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::SaveMessage | ( | System::String | messageUri, |
System::String | path | ||
) |
Saves mail message specified by the uri to local file system. The mail message file is RFC 822 compliant format (EML).
if you want to parse the mail message files, use MailMessage.
messageUri | The Uri of the mail message |
path | The target path to save the message |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::Send | ( | System::SharedPtr< MailMessage > | message | ) |
Sends the mail message.
message | The mail message to be sent. |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::set_ClientCertificate | ( | System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate > | value | ) |
Sets the client certificate.
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::set_CookieContainer | ( | System::SharedPtr< System::Net::CookieContainer > | value | ) |
Sets the cookie container.
The cookie container.
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::set_Encoding | ( | System::SharedPtr< System::Text::Encoding > | value | ) |
Sets the encoding.
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::set_KeepAlive | ( | bool | value | ) |
Indicates whether to keep alive.
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::set_PreAuthenticate | ( | bool | value | ) |
Indicates whether to do pre-authentication.
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::set_SendChunked | ( | bool | value | ) |
Sets a value indicating whether [send chunked].
true
if [send chunked]; otherwise, false
.
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::SetReadFlag | ( | System::String | messageUri | ) |
Marks the specifeid message as read.
messageUri | A message uri. |
AsposeArgumentException | messageUri is null or empty . |
void Aspose::Email::Clients::Exchange::Dav::ExchangeClient::SetReadFlag | ( | System::String | messageUri, |
bool | suppressReceipt | ||
) |
Marks the specifeid message as read.
messageUri | A message uri. |
suppressReceipt | A value indicating whether the sending a read receipt should be suppressed. |
AsposeArgumentException | messageUri is null or empty . |