HandleExceptionArgs.ResponseContentType Property


Gets the response content type.

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

public string ResponseContentType { get; }

Property Value

Type: System.String

The string value that indicates the response format.

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.

.NET Framework
Available since 3.5
Return to top