NegotiatedContentResult<T>(HttpStatusCode, T) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the NegotiatedContentResult<T> class with the values provided.
public NegotiatedContentResult (System.Net.HttpStatusCode statusCode, T content);
new System.Web.Http.NegotiatedContentResult<'T> : System.Net.HttpStatusCode * 'T -> System.Web.Http.NegotiatedContentResult<'T>
Public Sub New (statusCode As HttpStatusCode, content As T)
Parameters
- statusCode
- HttpStatusCode
The HTTP status code for the response message.
- content
- T
The content value to negotiate and format in the entity body.