DataServiceRequestArgs.ContentType Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the Content-Type 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 ContentType As String
public string ContentType { get; set; }
Property Value
Type: System.String
The value of the Content-Type header.
Remarks
No validation is performed on the value of the ContentType property. Therefore, make sure that the supplied value is a valid value for an HTTP Content-Type 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.