ExchangeService Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ExchangeService() |
Initializes a new instance of the ExchangeService class, targeting the latest supported version of Exchange Web Services (EWS) and scoped to the system's current time zone. |
ExchangeService(ExchangeVersion) |
Initializes a new instance of the ExchangeService class, targeting the specified version of Exchange Web Services (EWS) and scoped to the system's current time zone. |
ExchangeService(TimeZoneInfo) |
Initializes a new instance of the ExchangeService class, targeting the latest supported version of Exchange Web Services (EWS) and scoped to the specified time zone. |
ExchangeService(ExchangeVersion, TimeZoneInfo) |
Initializes a new instance of the ExchangeService class, targeting the specified version of Exchange Web Services (EWS) and scoped to the specified time zone. |
ExchangeService()
Initializes a new instance of the ExchangeService class, targeting the latest supported version of Exchange Web Services (EWS) and scoped to the system's current time zone.
public:
ExchangeService();
public ExchangeService ();
Public Sub New ()
Applies to
ExchangeService(ExchangeVersion)
Initializes a new instance of the ExchangeService class, targeting the specified version of Exchange Web Services (EWS) and scoped to the system's current time zone.
public:
ExchangeService(Microsoft::Exchange::WebServices::Data::ExchangeVersion requestedServerVersion);
public ExchangeService (Microsoft.Exchange.WebServices.Data.ExchangeVersion requestedServerVersion);
Public Sub New (requestedServerVersion As ExchangeVersion)
Parameters
- requestedServerVersion
- ExchangeVersion
The version of EWS that the service targets.
Applies to
ExchangeService(TimeZoneInfo)
Initializes a new instance of the ExchangeService class, targeting the latest supported version of Exchange Web Services (EWS) and scoped to the specified time zone.
public:
ExchangeService(TimeZoneInfo ^ timeZone);
public ExchangeService (TimeZoneInfo timeZone);
Public Sub New (timeZone As TimeZoneInfo)
Parameters
- timeZone
- TimeZoneInfo
The time zone to which the service is scoped.
Applies to
ExchangeService(ExchangeVersion, TimeZoneInfo)
Initializes a new instance of the ExchangeService class, targeting the specified version of Exchange Web Services (EWS) and scoped to the specified time zone.
public:
ExchangeService(Microsoft::Exchange::WebServices::Data::ExchangeVersion requestedServerVersion, TimeZoneInfo ^ timeZone);
public ExchangeService (Microsoft.Exchange.WebServices.Data.ExchangeVersion requestedServerVersion, TimeZoneInfo timeZone);
Public Sub New (requestedServerVersion As ExchangeVersion, timeZone As TimeZoneInfo)
Parameters
- requestedServerVersion
- ExchangeVersion
The version of EWS that the service targets.
- timeZone
- TimeZoneInfo
The time zone to which the service is scoped.