Partager via


OkNegotiatedContentResult<T> Constructor

 

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

Overload List

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.

See Also

OkNegotiatedContentResult<T> Class
System.Web.Http.Results Namespace

Return to top

OkNegotiatedContentResult<T> Constructor (T, ApiController)

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

Syntax

public OkNegotiatedContentResult(
    T content,
    ApiController controller
)
public:
OkNegotiatedContentResult(
    T content,
    ApiController^ controller
)
new : 
        content:'T *
        controller:ApiController -> OkNegotiatedContentResult
Public Sub New (
    content As T,
    controller As ApiController
)

Parameters

  • content
    Type: T

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

Return to top

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

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

Syntax

public OkNegotiatedContentResult(
    T content,
    IContentNegotiator contentNegotiator,
    HttpRequestMessage request,
    IEnumerable<MediaTypeFormatter> formatters
)
public:
OkNegotiatedContentResult(
    T content,
    IContentNegotiator^ contentNegotiator,
    HttpRequestMessage^ request,
    IEnumerable<MediaTypeFormatter^>^ formatters
)
new : 
        content:'T *
        contentNegotiator:IContentNegotiator *
        request:HttpRequestMessage *
        formatters:IEnumerable<MediaTypeFormatter> -> OkNegotiatedContentResult
Public Sub New (
    content As T,
    contentNegotiator As IContentNegotiator,
    request As HttpRequestMessage,
    formatters As IEnumerable(Of MediaTypeFormatter)
)

Parameters

  • content
    Type: T

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

Return to top