EWSClient.GetEWSClient

GetEWSClient(string, ICredentials)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(string mailboxUri, ICredentials credentials)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
credentialsICredentialsContains the credentials for authentication.

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(string, string, string)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(string mailboxUri, string username, string password)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
usernameStringThe username
passwordStringThe password

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(string, string, string, WebProxy)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(string mailboxUri, string username, string password, 
    WebProxy proxy)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
usernameStringThe username
passwordStringThe password
proxyWebProxyContains HTTP proxy settings

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(string, string, string, string)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(string mailboxUri, string username, string password, 
    string domain)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
usernameStringThe username
passwordStringThe password
domainStringThe domain name

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(string, string, string, string, WebProxy)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(string mailboxUri, string username, string password, 
    string domain, WebProxy proxy)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
usernameStringThe username
passwordStringThe password
domainStringThe domain name
proxyWebProxyContains HTTP proxy settings

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(ExchangeVersion, string, ICredentials, WebProxy)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(ExchangeVersion serverVersion, string mailboxUri, 
    ICredentials credentials, WebProxy proxy)
ParameterTypeDescription
serverVersionExchangeVersionExchange server versions
mailboxUriStringThe URI of mailbox
credentialsICredentialsContains the credentials for authentication.
proxyWebProxyContains HTTP proxy settings

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(ExchangeVersion, bool, string, string, ICredentials, WebProxy)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(ExchangeVersion serverVersion, 
    bool formbasedAuthenticationRequired, string formbasedAuthenticationLocation, 
    string mailboxUri, ICredentials credentials, WebProxy proxy)
ParameterTypeDescription
serverVersionExchangeVersionExchange server versions
formbasedAuthenticationRequiredBooleanSet true if form-based authentication is required, otherwise set false.
formbasedAuthenticationLocationStringurl for form-based authentication
mailboxUriStringThe URI of mailbox
credentialsICredentialsContains the credentials for authentication.
proxyWebProxyContains HTTP proxy settings

Return Value

Instance of the class based on the EWSClient class.

See Also


GetEWSClient(string, ICredentials, WebProxy)

Initializes a new instance of the EWSClient based class

public static IEWSClient GetEWSClient(string mailboxUri, ICredentials credentials, WebProxy proxy)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
credentialsICredentialsContains the credentials for authentication.
proxyWebProxyContains HTTP proxy settings

Return Value

Instance of the class based on the EWSClient class.

See Also