DataServiceRequestArgs.ContentType Property

Gets or sets the Content-Type header of the request message.

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

Syntax

'Declaration
Public Property ContentType As String 
    Get 
    Set
'Usage
Dim instance As DataServiceRequestArgs 
Dim value As String 

value = instance.ContentType

instance.ContentType = value
public string ContentType { get; set; }
public:
property String^ ContentType {
    String^ get ();
    void set (String^ value);
}
member ContentType : string with get, set
function get ContentType () : String 
function set ContentType (value : String)

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.

See Also

Reference

DataServiceRequestArgs Class

System.Data.Services.Client Namespace