HandleExceptionArgs.ResponseContentType Property
Gets the response content type.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Property ResponseContentType As String
Get
Private Set
'Usage
Dim instance As HandleExceptionArgs
Dim value As String
value = instance.ResponseContentType
public string ResponseContentType { get; private set; }
public:
property String^ ResponseContentType {
String^ get ();
private: void set (String^ value);
}
member ResponseContentType : string with get, private set
function get ResponseContentType () : String
private function set ResponseContentType (value : String)
Property Value
Type: System.String
The string value that indicates the response format.
Remarks
All errors result in an error payload sent back from the service. This property informs the service author of the format the error that will be sent back. The value of this property will always be a valid Internet Assigned Numbers Authority (IANA) mime type.