Share via

OkNegotiatedContentResult<T> Class


Represents an action result that performs content negotiation and returns an HttpStatusCode.OK response when it succeeds.

Namespace:   System.Web.Http.Results
Assembly:  System.Web.Http (in System.Web.Http.dll)

Inheritance Hierarchy



public class OkNegotiatedContentResult<T> : IHttpActionResult
generic<typename T>
public ref class OkNegotiatedContentResult : IHttpActionResult
type OkNegotiatedContentResult<'T> = 
        interface IHttpActionResult
Public Class OkNegotiatedContentResult(Of T)
    Implements IHttpActionResult

Type Parameters

  • T
    The type of content in the entity body.


Name Description
System_CAPS_pubmethod OkNegotiatedContentResult<T>(T, ApiController)

Initializes a new instance of the OkNegotiatedContentResult<T> class with the values provided.

System_CAPS_pubmethod OkNegotiatedContentResult<T>(T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

Initializes a new instance of the OkNegotiatedContentResult<T> class with the values provided.


Name Description
System_CAPS_pubproperty Content

Gets the content value to negotiate and format in the entity body.

System_CAPS_pubproperty ContentNegotiator

Gets the content negotiator to handle content negotiation.

System_CAPS_pubproperty Formatters

Gets the formatters to use to negotiate and format the content.

System_CAPS_pubproperty Request

Gets the request message which led to this result.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecuteAsync(CancellationToken)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.Http.Results Namespace

Return to top