ODataMediaTypeFormatter.SetDefaultContentHeaders Method (Type, HttpContentHeaders, MediaTypeHeaderValue)
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public override void SetDefaultContentHeaders(
Type type,
HttpContentHeaders headers,
MediaTypeHeaderValue mediaType
)
public:
virtual void SetDefaultContentHeaders(
Type^ type,
HttpContentHeaders^ headers,
MediaTypeHeaderValue^ mediaType
) override
override SetDefaultContentHeaders :
type:Type *
headers:HttpContentHeaders *
mediaType:MediaTypeHeaderValue -> unit
Public Overrides Sub SetDefaultContentHeaders (
type As Type,
headers As HttpContentHeaders,
mediaType As MediaTypeHeaderValue
)
Parameters
- type
Type: System.Type
- headers
Type: System.Net.Http.Headers.HttpContentHeaders
- mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValue
See Also
ODataMediaTypeFormatter Class
System.Web.Http.OData.Formatter Namespace
Return to top