ContentNegotiationResult ContentNegotiationResult ContentNegotiationResult Class

Definition

Represents the result of content negotiation performed using Negotiate(Type, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

public class ContentNegotiationResult
type ContentNegotiationResult = class
Public Class ContentNegotiationResult
Inheritance
ContentNegotiationResultContentNegotiationResultContentNegotiationResult

Constructors

ContentNegotiationResult(MediaTypeFormatter, MediaTypeHeaderValue) ContentNegotiationResult(MediaTypeFormatter, MediaTypeHeaderValue) ContentNegotiationResult(MediaTypeFormatter, MediaTypeHeaderValue)

Create the content negotiation result object.

Properties

Formatter Formatter Formatter

The formatter chosen for serialization.

MediaType MediaType MediaType

The media type that is associated with the formatter chosen for serialization. Can be null.

Applies to