EmailMessage constructor

Initializes a local instance of the EmailMessage class with an Exchange service object.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public EmailMessage(
	ExchangeService service
)

Parameters

service
Type: Microsoft.Exchange.WebServices.Data.ExchangeService

The Exchange service object to which the e-mail message can be bound.

Use the Bind(ExchangeService, ItemId) method to bind to an existing e-mail message on the Exchange server.

Show: