Share via


DataServiceRequestArgs.ContentType Property

Definition

Gets or sets the Content-Type header of the request message.

public string ContentType { get; set; }
member this.ContentType : string with get, set
Public Property ContentType As String

Property Value

The value of the Content-Type header.

Remarks

Sets the Content-Type header to be used when sending the stream to the server. Note that no validation is done on the contents of this property. It is the responsibility of the user to format it correctly to be used as the value of an HTTP Content-Type header.

Applies to