DataServiceRequestArgs.AcceptContentType Property
Gets or sets the Accept 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 AcceptContentType As String
Get
Set
'Usage
Dim instance As DataServiceRequestArgs
Dim value As String
value = instance.AcceptContentType
instance.AcceptContentType = value
public string AcceptContentType { get; set; }
public:
property String^ AcceptContentType {
String^ get ();
void set (String^ value);
}
member AcceptContentType : string with get, set
function get AcceptContentType () : String
function set AcceptContentType (value : String)
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.