Edit

Share via


Appointment.Bind Method

Definition

Overloads

Bind(ExchangeService, ItemId)

Binds to an existing appointment and loads its first class properties. Calling this method results in a call to Exchange Web Services (EWS).

Bind(ExchangeService, ItemId, PropertySet)

Binds to an existing appointment and loads the specified set of properties. Calling this method results in a call to Exchange Web Services (EWS).

Bind(ExchangeService, ItemId)

Binds to an existing appointment and loads its first class properties. Calling this method results in a call to Exchange Web Services (EWS).

public:
 static Microsoft::Exchange::WebServices::Data::Appointment ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::ItemId ^ id);
public static Microsoft.Exchange.WebServices.Data.Appointment Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.ItemId id);
Public Shared Function Bind (service As ExchangeService, id As ItemId) As Appointment

Parameters

service
ExchangeService

The service to use to bind to the appointment.

id
ItemId

The identifier of the appointment to bind to.

Returns

An Appointment instance that represents the appointment that corresponds to the specified ID.

Exceptions

In specific scenarios, this method can generate an exception similar to the following:System.ArgumentNullException: Value cannot be null.Parameter name: id At System.TimeZoneInfo.FindSystemTimeZoneById(String id)...This can happen if all of the following are true:The ExchangeService object passed in the service parameter was created with a value of Exchange2007_SP1 in the requestedServerVersion parameter.The MeetingTimeZoneTimeZoneName attribute.If you encounter this exception, you can verify the absence of the TimeZoneName attribute by enabling tracing requests and responsesTo work around this problem, do one of the following:Create the ExchangeService object with a value of Exchange2010 or higher in the requestedServerVersion parameter.Specify a PropertySet object that does not include the StartTimeZone or StartTimeZone properties.

Applies to

Bind(ExchangeService, ItemId, PropertySet)

Binds to an existing appointment and loads the specified set of properties. Calling this method results in a call to Exchange Web Services (EWS).

public:
 static Microsoft::Exchange::WebServices::Data::Appointment ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::ItemId ^ id, Microsoft::Exchange::WebServices::Data::PropertySet ^ propertySet);
public static Microsoft.Exchange.WebServices.Data.Appointment Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.ItemId id, Microsoft.Exchange.WebServices.Data.PropertySet propertySet);

Parameters

service
ExchangeService

The service to use to bind to the appointment.

id
ItemId

The identifier of the appointment to bind to.

propertySet
PropertySet

The set of properties to load.

Returns

An Appointment instance that represents the appointment that corresponds to the specified ID.

Exceptions

For details about this exception, see Bind(ExchangeService, ItemId).

Applies to