DataServiceRequestArgs.ContentType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.