EmailMessage.Bind Method

Definition

Overloads

Bind(ExchangeService, ItemId)

Binds to an existing e-mail message and loads its first class properties.

Bind(ExchangeService, ItemId, PropertySet)

Binds to an existing e-mail message and loads the specified set of properties.

Bind(ExchangeService, ItemId)

Binds to an existing e-mail message and loads its first class properties.

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

Parameters

service
ExchangeService

The service to use to bind to the e-mail message.

id
ItemId

The identifier of the e-mail message to bind to.

Returns

An e-mail message.

Remarks

Calling this method results in a call to Exchange Web Services (EWS).

Applies to

Bind(ExchangeService, ItemId, PropertySet)

Binds to an existing e-mail message and loads the specified set of properties.

public:
 static Microsoft::Exchange::WebServices::Data::EmailMessage ^ 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.EmailMessage Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.ItemId id, Microsoft.Exchange.WebServices.Data.PropertySet propertySet);

Parameters

service
ExchangeService

The identifier of the e-mail message to bind to.

id
ItemId

The service to use to bind to the e-mail message.

propertySet
PropertySet

The set of properties to load.

Returns

An e-mail message.

Remarks

Calling this method results in a call to Exchange Web services (EWS).

Applies to