DataServiceRequestArgs.ContentType Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public string ContentType { get; set; }

Property Value

Type: System.String

The value of the Content-Type header.

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.

.NET Framework
Available since 3.5
Silverlight
Available since 4.0
Return to top
Show: