Share via


DataServiceRequestArgs.AcceptContentType Property

Definition

Gets or sets the Accept header of the request message.

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

Property Value

The value of the Accept header.

Remarks

Sets the mime type (ex. image/png) to be used when retrieving the stream. 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 Accept header.

Applies to