OkNegotiatedContentResult<T> Class

Summary

Represents an action result that performs content negotiation and returns an [System.Net.HttpStatusCode.OK]() response when it succeeds.

Syntax

public class OkNegotiatedContentResult<T> : NegotiatedContentResult<T>, IActionResult

GitHub

View on GitHub

class System.Web.Http.OkNegotiatedContentResult<T>

Constructors

OkNegotiatedContentResult(T)

Initializes a new instance of the [System.Web.Http.OkNegotiatedContentResult`1](System.Web.Http.OkNegotiatedContentResult`1.yml) class with the values provided.

Arguments:
  • content (T) – The content value to negotiate and format in the entity body.
public OkNegotiatedContentResult(T content)