public final class ExchangeClient extends ExchangeClientBase
<p>The ExchangeClient class allows applications to manage E-Mail box in Microsoft Exchange Server by using WebDav Exchange Store Protocol.</p>
Constructor and Description |
---|
ExchangeClient(String mailboxUri,
com.aspose.ms.System.Net.ICredentials credentials)
Initialize a new instance of the class
ExchangeClientExchageClient |
ExchangeClient(String mailboxUri,
String username,
String password)
Initialize a new instance of the class
ExchangeClientExchageClient |
ExchangeClient(String mailboxUri,
String username,
String password,
String domain)
Initialize a new instance of the class
ExchangeClientExchageClient |
Modifier and Type | Method and Description |
---|---|
String |
appendMessage(String folder,
MailMessage message)
Uploads the mail message to the specified folder
|
String |
appendMessage(String folder,
MailMessage message,
boolean markAsSent)
Uploads the mail message to the specified folder
|
void |
backup(ExchangeFolderInfoCollection folders,
String fileName,
int options)
Backups the content of the specified folders
|
void |
backupInternal(ExchangeFolderInfoCollection folders,
com.aspose.ms.System.IO.Stream stream,
int options)
Backups the content of the specified folders
|
String |
createContact(Contact contact)
Creates a contact item in the Exchange store.
|
String |
createContact(MapiContact contact)
Deprecated.
|
ExchangeFolderInfo |
createFolder(String parentFolderUri,
String name)
Creates the new folder with the specified name in the specified parent folder.
|
void |
deleteContact(Contact contact)
Deletes the contact.
|
void |
deleteContact(MapiContact contact)
Deprecated.
|
void |
deleteContact(String id)
Deletes the contact.
|
void |
deleteFolder(String folderUri)
Deletes the folder
|
void |
deleteMessage(String messageUri)
Deletes the mail message.
|
void |
deleteMessage(String messageUri,
boolean suppressReceipt)
Deletes the mail message.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources
|
Attachment |
fetchAttachment(String attachmentUri)
Fetches the attachment
|
MapiMessage |
fetchMapiMessage(String messageUri)
Fetches the mapi message with specified uri.
|
MailMessage |
fetchMessage(String messageUri)
Fetches the mail message with specified uri.
|
boolean |
folderExists(String parentFolderUri,
String folderName,
ExchangeFolderInfo[] folder)
Checks whether the specified folder exists.
|
com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate |
getClientCertificate()
Gets or sets the client certificate.
|
Contact[] |
getContacts(String folderUri)
Lists contacts located in the specified folder on server
|
com.aspose.ms.System.Net.CookieContainer |
getCookieContainer()
Gets or sets the cookie container.
|
com.aspose.ms.System.Net.ICredentials |
getCredentials()
Gets or sets the credentials.
|
Charset |
getEncoding()
Gets or sets the encoding.
|
ExchangeFolderInfo |
getFolderInfo(String folderUri)
Gets the folder information.
|
boolean |
getKeepAlive()
Indicates whether to keep alive.
|
Contact[] |
getMailboxes()
Lists mailboxes in the global address list.
|
ExchangeMailboxInfo |
getMailboxInfo()
Gets the mailbox information.
|
ExchangeMailboxInfo |
getMailboxInfo(String mailbox)
Gets the mailbox information
|
long |
getMailboxSize()
Get the size of the maibox
|
long |
getMailboxSize(String mailbox)
Get the size of the maibox
|
String |
getMailboxUri()
Gets or sets the mailbox uri.
|
boolean |
getPreAuthenticate()
Indicates whether to do pre-authentication.
|
com.aspose.ms.System.Net.WebProxy |
getProxy()
Gets or sets the proxy.
|
boolean |
getSendChunked()
Gets or sets a value indicating whether [send chunked].
|
int |
getTimeout()
Gets or sets the number of milliseconds to wait before the operation times out.
|
String |
getVersionInfo()
Returns exchange server version info
|
MapiContact[] |
listContacts(String folderUri)
Deprecated.
|
MapiContactCollection |
listMailboxes()
Deprecated.
|
ExchangeMessageInfoCollection |
listMessages(String folder,
boolean recursive)
List the messages in the specified folder
|
ExchangeMessageInfoCollection |
listMessages(String folder,
MailQuery query,
boolean recursive)
Lists the messages.
|
ExchangeMessageInfoCollection |
listMessages(String folder,
String query)
Lists the messages.
|
ExchangeMessageInfoCollection |
listMessages(String folder,
String messageClass,
boolean recursive)
Lists the messages.
|
ExchangeMessageInfoCollection |
listMessagesById(String folder,
String messageId)
Lists the messages by id.
|
ExchangeMessageInfoCollection |
listMessagesByOption(String folder,
int options)
Lists the mail message in the specified folder.
|
ExchangeMessageInfoCollection |
listMessagesByOption(String folder,
int maxNumberOfMessages,
int options)
List the messages in the specified folder
|
ExchangeFolderInfoCollection |
listPublicFolders()
Gets collection of public folders from root public folder
|
ExchangeFolderInfoCollection |
listSubFolders(String parentFolderUri)
Gets collection of child folders from parent
|
void |
moveItems(String destinationFolderUri,
boolean overwrite,
String... itemsUriArray)
Moves items.
|
void |
moveItems(String destinationFolderUri,
String... itemsUriArray)
Moves items.
|
void |
moveMessage(ExchangeMessageInfo msgInfo,
String destinationFolderUri)
Moves the message.
|
void |
moveMessage(ExchangeMessageInfo msgInfo,
String destinationFolderUri,
boolean overwrite)
Moves the message.
|
void |
moveMessage(String destinationFolderUri,
boolean overwrite,
String messageUri)
Moves the message.
|
void |
moveMessage(String destinationFolderUri,
String messageUri)
Moves the message.
|
MapiContactCollection |
resolveContact(String unresolvedEntry)
Deprecated.
|
Contact[] |
resolveContacts(String unresolvedEntry)
Resolves ambiguous mailbox display names.
|
void |
restore(PersonalStorage pst,
ExchangeFolderInfoCollection folders,
int options)
Restores the specified exchange folders from the given personal storage.
|
void |
restore(PersonalStorage pst,
int options)
Restores exchange folders from the given personal storage.
|
void |
restore(String fileName,
ExchangeFolderInfoCollection folders,
int options)
Restores the specified exchange folders from the specified personal storage file.
|
void |
restore(String fileName,
int options)
Restores exchange folders from the specified personal storage file.
|
void |
restoreInternal(com.aspose.ms.System.IO.Stream stream,
ExchangeFolderInfoCollection folders,
int options)
Restores the specified exchange folders from the given personal storage.
|
void |
restoreInternal(com.aspose.ms.System.IO.Stream stream,
int options)
Restores exchange folders from the given personal storage.
|
void |
saveMessage(String messageUri,
String path)
Saves mail message specified by the uri to local file system.
|
void |
saveMessageInternal(String messageUri,
com.aspose.ms.System.IO.Stream stream)
Saves the message.
|
void |
send(MailMessage message)
Sends the mail message.
|
void |
setClientCertificate(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate value)
Gets or sets the client certificate.
|
void |
setCookieContainer(com.aspose.ms.System.Net.CookieContainer value)
Gets or sets the cookie container.
|
void |
setCredentials(com.aspose.ms.System.Net.ICredentials value)
Gets or sets the credentials.
|
void |
setEncoding(Charset value)
Gets or sets the encoding.
|
void |
setKeepAlive(boolean value)
Indicates whether to keep alive.
|
void |
setMailboxUri(String value)
Gets or sets the mailbox uri.
|
void |
setPreAuthenticate(boolean value)
Indicates whether to do pre-authentication.
|
void |
setProxy(com.aspose.ms.System.Net.WebProxy value)
Gets or sets the proxy.
|
void |
setReadFlag(String messageUri)
Marks the specifeid message as read.
|
void |
setReadFlag(String messageUri,
boolean suppressReceipt)
Marks the specifeid message as read.
|
void |
setSendChunked(boolean value)
Gets or sets a value indicating whether [send chunked].
|
void |
setTimeout(int value)
Gets or sets the number of milliseconds to wait before the operation times out.
|
backup, dispose, folderExists, getLogFileName, getUseDateInLogFileName, listMessages, listMessagesByMaxNumberOfMessages, listSubFolders, resetLogSettings, restore, restore, saveMessage, setLogFileName, setUseDateInLogFileName
public ExchangeClient(String mailboxUri, String username, String password)
Initialize a new instance of the class ExchangeClientExchageClient
mailboxUri
- The url of the mailboxusername
- The username of the mailboxpassword
- The password of the mailboxpublic ExchangeClient(String mailboxUri, String username, String password, String domain)
Initialize a new instance of the class ExchangeClientExchageClient
mailboxUri
- The url of the mailboxusername
- The username of the mailboxpassword
- The password of the mailboxdomain
- The domain of the userpublic ExchangeClient(String mailboxUri, com.aspose.ms.System.Net.ICredentials credentials)
Initialize a new instance of the class ExchangeClientExchageClient
mailboxUri
- The url of the mailboxcredentials
- The credentials used to log inpublic com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate getClientCertificate()
Gets or sets the client certificate.
public void setClientCertificate(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate value)
Gets or sets the client certificate.
public boolean getKeepAlive()
Indicates whether to keep alive.
public void setKeepAlive(boolean value)
Indicates whether to keep alive.
public boolean getPreAuthenticate()
Indicates whether to do pre-authentication.
public void setPreAuthenticate(boolean value)
Indicates whether to do pre-authentication.
public int getTimeout()
Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
getTimeout
in interface IExchangeClientBase
getTimeout
in class ExchangeClientBase
public void setTimeout(int value)
Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
setTimeout
in interface IExchangeClientBase
setTimeout
in class ExchangeClientBase
value
- A number of millisecondspublic Charset getEncoding()
Gets or sets the encoding.
public void setEncoding(Charset value)
Gets or sets the encoding.
public com.aspose.ms.System.Net.ICredentials getCredentials()
Gets or sets the credentials.
getCredentials
in interface IExchangeClientBase
getCredentials
in class ExchangeClientBase
public void setCredentials(com.aspose.ms.System.Net.ICredentials value)
Gets or sets the credentials.
setCredentials
in interface IExchangeClientBase
setCredentials
in class ExchangeClientBase
public com.aspose.ms.System.Net.WebProxy getProxy()
Gets or sets the proxy.
getProxy
in interface IExchangeClientBase
getProxy
in class ExchangeClientBase
public void setProxy(com.aspose.ms.System.Net.WebProxy value)
Gets or sets the proxy.
setProxy
in interface IExchangeClientBase
setProxy
in class ExchangeClientBase
public String getMailboxUri()
Gets or sets the mailbox uri.
getMailboxUri
in interface IExchangeClientBase
getMailboxUri
in class ExchangeClientBase
public void setMailboxUri(String value)
Gets or sets the mailbox uri.
setMailboxUri
in interface IExchangeClientBase
setMailboxUri
in class ExchangeClientBase
public ExchangeMailboxInfo getMailboxInfo()
Gets the mailbox information.
getMailboxInfo
in interface IExchangeClientBase
getMailboxInfo
in class ExchangeClientBase
public com.aspose.ms.System.Net.CookieContainer getCookieContainer()
Gets or sets the cookie container.
Value: The cookie container.public void setCookieContainer(com.aspose.ms.System.Net.CookieContainer value)
Gets or sets the cookie container.
Value: The cookie container.public boolean getSendChunked()
Gets or sets a value indicating whether [send chunked].
Value:true
if [send chunked]; otherwise, false
.public void setSendChunked(boolean value)
Gets or sets a value indicating whether [send chunked].
Value:true
if [send chunked]; otherwise, false
.public void moveMessage(ExchangeMessageInfo msgInfo, String destinationFolderUri)
Moves the message.
msgInfo
- Represents the E-Mail message info fetched from the Exchange Store.destinationFolderUri
- An URI of a destination folder.public void moveMessage(ExchangeMessageInfo msgInfo, String destinationFolderUri, boolean 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.public void moveMessage(String destinationFolderUri, String messageUri)
Moves the message.
destinationFolderUri
- An URI of a destination folder.messageUri
- Represents the uri of E-Mail message.public void moveMessage(String destinationFolderUri, boolean overwrite, 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.public void moveItems(String destinationFolderUri, String... itemsUriArray)
Moves items.
destinationFolderUri
- The new destination for items.itemsUriArray
- Items uri arrraypublic void moveItems(String destinationFolderUri, boolean overwrite, 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 arrraypublic long getMailboxSize()
Get the size of the maibox
getMailboxSize
in interface IExchangeClientBase
getMailboxSize
in class ExchangeClientBase
public long getMailboxSize(String mailbox)
Get the size of the maibox
getMailboxSize
in interface IExchangeClientBase
getMailboxSize
in class ExchangeClientBase
mailbox
- A mailbox. Note: if it is set to null
or empty
the default mailbox will be usedpublic String getVersionInfo()
Returns exchange server version info
getVersionInfo
in interface IExchangeClientBase
getVersionInfo
in class ExchangeClientBase
public ExchangeMailboxInfo getMailboxInfo(String mailbox)
Gets the mailbox information
getMailboxInfo
in interface IExchangeClientBase
getMailboxInfo
in class ExchangeClientBase
mailbox
- A mailbox to read from. Note: if mailbox is set to null
or empty
the default mailbox will be usedExchangeMailboxInfo
that represents mailbox informationpublic ExchangeMessageInfoCollection listMessages(String folder, String messageClass, boolean recursive)
Lists the messages.
folder
- The folder.messageClass
- The message class.recursive
- if set to true
[recursive].public ExchangeMessageInfoCollection listMessages(String folder, boolean recursive)
List the messages in the specified folder
folder
- The folder Urirecursive
- Indicates whether recursive listing or not.public ExchangeMessageInfoCollection listMessages(String folder, String query)
Lists the messages.
folder
- The folder.query
- The query.public ExchangeMessageInfoCollection listMessages(String folder, MailQuery query, boolean 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.public ExchangeMessageInfoCollection listMessagesById(String folder, String messageId)
Lists the messages by id.
folder
- The folder.messageId
- The message id.public ExchangeMessageInfoCollection listMessagesByOption(String folder, int options)
Lists the mail message in the specified folder.
listMessagesByOption
in interface IExchangeClientBase
listMessagesByOption
in class ExchangeClientBase
folder
- The folder urloptions
- Specifies the settings of listingExchangeMessageInfoCollection
collection.public void saveMessage(String messageUri, String path)
Saves mail message specified by the uri to local file system. The mail message file is RFC 822 compliant format (EML).
saveMessage
in interface IExchangeClientBase
saveMessage
in class ExchangeClientBase
messageUri
- The Uri of the mail messagepath
- The target path to save the message
MailMessage
.public void saveMessageInternal(String messageUri, com.aspose.ms.System.IO.Stream stream)
Saves the message.
messageUri
- The message URI.stream
- The stream.public void send(MailMessage message)
Sends the mail message.
send
in interface IExchangeClientBase
send
in class ExchangeClientBase
message
- The mail message to be sent.public void setReadFlag(String messageUri)
Marks the specifeid message as read.
setReadFlag
in interface IExchangeClientBase
setReadFlag
in class ExchangeClientBase
messageUri
- A message uri.com.aspose.ms.System.ArgumentException
- messageUri
is null
or empty
.public void setReadFlag(String messageUri, boolean suppressReceipt)
Marks the specifeid message as read.
messageUri
- A message uri.suppressReceipt
- A value indicating whether the sending a read receipt should be suppressed.com.aspose.ms.System.ArgumentException
- messageUri
is null
or empty
.public ExchangeFolderInfoCollection listPublicFolders()
Gets collection of public folders from root public folder
listPublicFolders
in interface IExchangeClientBase
listPublicFolders
in class ExchangeClientBase
ExchangeFolderInfoCollection
that contains subfolders from the root public folderpublic ExchangeFolderInfoCollection listSubFolders(String parentFolderUri)
Gets collection of child folders from parent
listSubFolders
in interface IExchangeClientBase
listSubFolders
in class ExchangeClientBase
parentFolderUri
- The uri of the parent folderExchangeFolderInfoCollection
that contains subfolders from the parent foldercom.aspose.ms.System.ArgumentException
- parentFolderUri
is null
or empty
public MailMessage fetchMessage(String messageUri)
Fetches the mail message with specified uri.
fetchMessage
in interface IExchangeClientBase
fetchMessage
in class ExchangeClientBase
messageUri
- The message uri.public MapiMessage fetchMapiMessage(String messageUri)
Fetches the mapi message with specified uri.
messageUri
- The message uri.MapiMessage
object contains the message.com.aspose.ms.System.ArgumentNullException
- messageUri
is nullcom.aspose.ms.System.ArgumentException
- messageUri
is empty stringpublic void deleteMessage(String messageUri)
Deletes the mail message.
deleteMessage
in interface IExchangeClientBase
deleteMessage
in class ExchangeClientBase
messageUri
- The message uri.com.aspose.ms.System.ArgumentException
- messageUri
is empty
.com.aspose.ms.System.ArgumentNullException
- messageUri
is null
.public void deleteMessage(String messageUri, boolean suppressReceipt)
Deletes the mail message.
messageUri
- The message uri.suppressReceipt
- A value indicating whether the sending a non-read report should be suppressed.com.aspose.ms.System.ArgumentException
- messageUri
is empty
.com.aspose.ms.System.ArgumentNullException
- messageUri
is null
.public String appendMessage(String folder, MailMessage message)
Uploads the mail message to the specified folder
appendMessage
in interface IExchangeClientBase
appendMessage
in class ExchangeClientBase
folder
- A folder to which message is uploadedmessage
- A message to uploadcom.aspose.ms.System.ArgumentException
- A folder is not specifiedcom.aspose.ms.System.ArgumentNullException
- message
is null
public String appendMessage(String folder, MailMessage message, boolean markAsSent)
Uploads the mail message to the specified folder
appendMessage
in interface IExchangeClientBase
appendMessage
in class ExchangeClientBase
folder
- An uri of folder to which message is uploadedmessage
- A message to uploadmarkAsSent
- A value indicating whether the message should be appended as a sent message or a draft.com.aspose.ms.System.ArgumentException
- A folder is not specifiedcom.aspose.ms.System.ArgumentNullException
- message
is null
public ExchangeMessageInfoCollection listMessagesByOption(String folder, int maxNumberOfMessages, int options)
List the messages in the specified folder
listMessagesByOption
in interface IExchangeClientBase
listMessagesByOption
in class ExchangeClientBase
folder
- The folder UrimaxNumberOfMessages
- Maximum number of messagesoptions
- Specifies the settings of listingpublic Attachment fetchAttachment(String attachmentUri)
Fetches the attachment
fetchAttachment
in interface IExchangeClientBase
fetchAttachment
in class ExchangeClientBase
attachmentUri
- The attachment uri.
(Attachment uri can be retrieved using ListMessages(folder, ExchangeListMessagesOptions.FetchAttachmentInformation) method)Attachment
that represents fetched attachmentcom.aspose.ms.System.ArgumentException
- attachmentUri
is null or emptypublic void backup(ExchangeFolderInfoCollection folders, String fileName, int options)
Backups the content of the specified folders
backup
in interface IExchangeClientBase
backup
in class ExchangeClientBase
folders
- A folders to backupfileName
- A path to the presonal storage fileoptions
- A backup optionscom.aspose.ms.System.ArgumentException
- A fileName
is null
or empty
com.aspose.ms.System.ArgumentNullException
- folders
is null
public void backupInternal(ExchangeFolderInfoCollection folders, com.aspose.ms.System.IO.Stream stream, int options)
Backups the content of the specified folders
folders
- A folders to backupstream
- A stream to write intooptions
- A backup optionscom.aspose.ms.System.NotSupportedException
- The given stream does not support writtingcom.aspose.ms.System.ArgumentNullException
- folders
or stream
is null
public ExchangeFolderInfo getFolderInfo(String folderUri)
Gets the folder information.
folderUri
- A folder uri.ExchangeFolderInfo
that represents the folder information.com.aspose.ms.System.ArgumentException
- folderUri
is null
or empty
.ExchangeException
- Server responded an error message.public boolean folderExists(String parentFolderUri, String folderName, ExchangeFolderInfo[] folder)
Checks whether the specified folder exists.
folderExists
in interface IExchangeClientBase
folderExists
in class ExchangeClientBase
parentFolderUri
- An uri of parent folder.folderName
- A folder name.folder
- A ExchangeFolderInfo
that represents the found folder information, if folder exists.true
if the specified folder exists in the specified parent folder; otherwise, false
.com.aspose.ms.System.ArgumentException
- parentFolderUri
or folderName
is null
or empty
public ExchangeFolderInfo createFolder(String parentFolderUri, String name)
Creates the new folder with the specified name in the specified parent folder.
createFolder
in interface IExchangeClientBase
createFolder
in class ExchangeClientBase
parentFolderUri
- An uri of parent folder.name
- A name of folder to be created.com.aspose.ms.System.ArgumentException
- parentFolderUri
or name
is null
or empty
.public void deleteFolder(String folderUri)
Deletes the folder
deleteFolder
in interface IExchangeClientBase
deleteFolder
in class ExchangeClientBase
folderUri
- The folder Uricom.aspose.ms.System.ArgumentException
- folderUri
is null
or empty
public void restore(String fileName, int options)
Restores exchange folders from the specified personal storage file.
restore
in interface IExchangeClientBase
restore
in class ExchangeClientBase
fileName
- A path to personal storage file.options
- Restore options.com.aspose.ms.System.ArgumentException
- fileName
is not specified.public void restoreInternal(com.aspose.ms.System.IO.Stream stream, int options)
Restores exchange folders from the given personal storage.
stream
- A stream containing personal storage.options
- Restore options.com.aspose.ms.System.NotSupportedException
- The stream
does not support reading.com.aspose.ms.System.ArgumentNullException
- stream
is null
.public void restore(PersonalStorage pst, int options)
Restores exchange folders from the given personal storage.
restore
in interface IExchangeClientBase
restore
in class ExchangeClientBase
pst
- A personal storage containing the backuped imap folders.options
- Restore options.com.aspose.ms.System.ArgumentNullException
- pst
is null
.public void restore(String fileName, ExchangeFolderInfoCollection folders, int options)
Restores the specified exchange folders from the specified personal storage file.
restore
in interface IExchangeClientBase
restore
in class ExchangeClientBase
fileName
- A path to personal storage file.folders
- A folders to be restored.options
- Restore options.com.aspose.ms.System.ArgumentException
- fileName
is not specified.com.aspose.ms.System.ArgumentNullException
- folders
is null
.public void restoreInternal(com.aspose.ms.System.IO.Stream stream, ExchangeFolderInfoCollection folders, int 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.com.aspose.ms.System.NotSupportedException
- The stream
does not support reading.com.aspose.ms.System.ArgumentNullException
- stream
or folders
is null
.public void restore(PersonalStorage pst, ExchangeFolderInfoCollection folders, int options)
Restores the specified exchange folders from the given personal storage.
restore
in interface IExchangeClientBase
restore
in class ExchangeClientBase
pst
- A personal storage containing the backuped exchange folders.folders
- A folders to be restored.options
- Restore options.com.aspose.ms.System.ArgumentNullException
- pst
or folders
is null
.protected void dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources
dispose
in class ExchangeClientBase
disposing
- true
to release both managed and unmanaged resources; false
to release only unmanaged resources.@Deprecated public String createContact(MapiContact contact)
Creates a contact item in the Exchange store.
createContact
in interface IExchangeClientBase
createContact
in class ExchangeClientBase
contact
- Contact itempublic String createContact(Contact contact)
Creates a contact item in the Exchange store.
createContact
in interface IExchangeClientBase
createContact
in class ExchangeClientBase
contact
- Contact itempublic void deleteContact(Contact contact)
Deletes the contact.
deleteContact
in interface IExchangeClientBase
deleteContact
in class ExchangeClientBase
contact
- Contact@Deprecated public void deleteContact(MapiContact contact)
Deletes the contact.
deleteContact
in interface IExchangeClientBase
deleteContact
in class ExchangeClientBase
contact
- Contactpublic void deleteContact(String id)
Deletes the contact.
deleteContact
in interface IExchangeClientBase
deleteContact
in class ExchangeClientBase
id
- The contact identifier.public Contact[] getContacts(String folderUri)
Lists contacts located in the specified folder on server
getContacts
in interface IExchangeClientBase
getContacts
in class ExchangeClientBase
folderUri
- The URI of folderContact
that represents contact information@Deprecated public MapiContact[] listContacts(String folderUri)
Lists contacts located in the specified folder on server
listContacts
in interface IExchangeClientBase
listContacts
in class ExchangeClientBase
folderUri
- The URI of folderMapiContact
that represents contact information@Deprecated public MapiContactCollection resolveContact(String unresolvedEntry)
Resolves ambiguous mailbox display names. Note: the maximum count of returned contacts is 100. This is a restriction of used exchange command.
resolveContact
in interface IExchangeClientBase
resolveContact
in class ExchangeClientBase
unresolvedEntry
- A name of contact to resolve.MapiContactCollection
that represents contacts information.com.aspose.ms.System.ArgumentException
- unresolvedEntry
is null
or empty
.public Contact[] resolveContacts(String unresolvedEntry)
Resolves ambiguous mailbox display names. Note: the maximum count of returned contacts is 100. This is a restriction of used exchange command.
resolveContacts
in interface IExchangeClientBase
resolveContacts
in class ExchangeClientBase
unresolvedEntry
- A name of contact to resolve.Contact
objects.@Deprecated public MapiContactCollection listMailboxes()
Lists mailboxes in the global address list.
listMailboxes
in interface IExchangeClientBase
listMailboxes
in class ExchangeClientBase
MapiContactCollection
that represents contact information.public Contact[] getMailboxes()
Lists mailboxes in the global address list.
getMailboxes
in interface IExchangeClientBase
getMailboxes
in class ExchangeClientBase
Contact
objects.Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.