IEwsHttpWebRequest.ContentType property

Gets or sets the value of the Content-type HTTP header.

The ContentType property is applicable for clients that target Exchange Online and versions of Exchange starting with Microsoft Exchange Server 2007.

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

Syntax

'Declaration
Property ContentType As String
    Get
    Set
'Usage
Dim instance As IEwsHttpWebRequest
Dim value As String

value = instance.ContentType

instance.ContentType = value
string ContentType { get; set; }

Property value

Type: System.String
The value of the Content-type HTTP header. The default value is a null reference (Nothing in Visual Basic).

See also

Reference

IEwsHttpWebRequest interface

IEwsHttpWebRequest members

Microsoft.Exchange.WebServices.Data namespace