ODataMediaTypeFormatter.GetPerRequestFormatterInstance Method (Type, HttpRequestMessage, MediaTypeHeaderValue)
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public override MediaTypeFormatter GetPerRequestFormatterInstance(
Type type,
HttpRequestMessage request,
MediaTypeHeaderValue mediaType
)
public:
virtual MediaTypeFormatter^ GetPerRequestFormatterInstance(
Type^ type,
HttpRequestMessage^ request,
MediaTypeHeaderValue^ mediaType
) override
override GetPerRequestFormatterInstance :
type:Type *
request:HttpRequestMessage *
mediaType:MediaTypeHeaderValue -> MediaTypeFormatter
Public Overrides Function GetPerRequestFormatterInstance (
type As Type,
request As HttpRequestMessage,
mediaType As MediaTypeHeaderValue
) As MediaTypeFormatter
Parameters
- type
Type: System.Type
- request
Type: System.Net.Http.HttpRequestMessage
- mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValue
Return Value
Type: System.Net.Http.Formatting.MediaTypeFormatter
See Also
ODataMediaTypeFormatter Class
System.Web.Http.OData.Formatter Namespace
Return to top