ContentNegotiationResult Constructor
Create the content negotiation result object.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Sub New ( _
formatter As MediaTypeFormatter, _
mediaType As MediaTypeHeaderValue _
)
'Usage
Dim formatter As MediaTypeFormatter
Dim mediaType As MediaTypeHeaderValue
Dim instance As New ContentNegotiationResult(formatter, _
mediaType)
public ContentNegotiationResult(
MediaTypeFormatter formatter,
MediaTypeHeaderValue mediaType
)
public:
ContentNegotiationResult(
MediaTypeFormatter^ formatter,
MediaTypeHeaderValue^ mediaType
)
new :
formatter:MediaTypeFormatter *
mediaType:MediaTypeHeaderValue -> ContentNegotiationResult
public function ContentNegotiationResult(
formatter : MediaTypeFormatter,
mediaType : MediaTypeHeaderValue
)
Parameters
formatter
Type: System.Net.Http.Formatting.MediaTypeFormatterThe formatter.
mediaType
Type: MediaTypeHeaderValueThe preferred media type. Can be null.