ContentNegotiationResult Class

Represents the result of content negotiation performed using <see cref="M:System.Net.Http.Formatting.IContentNegotiator.Negotiate(System.Type,System.Net.Http.HttpRequestMessage,System.Collections.Generic.IEnumerable{System.Net.Http.Formatting.MediaTypeFormatter})" />

Inheritance Hierarchy

System.Object
  System.Net.Http.Formatting.ContentNegotiationResult

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Class ContentNegotiationResult
'Usage
Dim instance As ContentNegotiationResult
public class ContentNegotiationResult
public ref class ContentNegotiationResult
type ContentNegotiationResult =  class end
public class ContentNegotiationResult

The ContentNegotiationResult type exposes the following members.

Constructors

  Name Description
Public method ContentNegotiationResult Create the content negotiation result object.

Top

Properties

  Name Description
Public property Formatter The formatter chosen for serialization.
Public property MediaType The media type that is associated with the formatter chosen for serialization. Can be null.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Net.Http.Formatting Namespace