DataServiceRequestArgs.AcceptContentType Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the Accept header of the request message.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Property AcceptContentType As String
public string AcceptContentType { get; set; }

Property Value

Type: System.String
The value of the Accept header.

Remarks

No validation is performed on the value of the AcceptContentType property. Therefore, make sure that the supplied value is a valid value for an HTTP Accept header.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.