EwsInitEwsClient Method (ExchangeVersion, TimeZoneInfo)
Sets the specific MS Exchange version.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void InitEwsClient(
	ExchangeVersion version,
	TimeZoneInfo timeZone
)

Parameters

version
Type: ExchangeVersion
MS Exchange featureset you expect the server to support.
timeZone
Type: SystemTimeZoneInfo
The timezone to be used for all datetime calculations.
Remarks

Before using any EWS methods, you must set the minimum featureset you expect the MS Exchange server to support.

Some functions (for instance, searching folders) are supported in newest versions of MS Exchange only. You need to let the server know that you want to use the featureset of newer MS Exchange versions using this method.

This method itself does not verify the MS Exchange server version. It just initializes Ews component in the way that any further requests to the server will expect that its version is not lower than the specified one.

This overload also lets you redefine the timezone to use if your desired timezone is not local for this computer.

See Also