CreatedAtRouteNegotiatedContentResult<T> Constructor
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, ApiController) | Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided. |
|
CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, UrlHelper, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided. |
See Also
CreatedAtRouteNegotiatedContentResult<T> Class
System.Web.Http.Results Namespace
Return to top
CreatedAtRouteNegotiatedContentResult<T> Constructor (String, IDictionary<String, Object>, T, ApiController)
Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided.
Syntax
public CreatedAtRouteNegotiatedContentResult(
string routeName,
IDictionary<string, object> routeValues,
T content,
ApiController controller
)
public:
CreatedAtRouteNegotiatedContentResult(
String^ routeName,
IDictionary<String^, Object^>^ routeValues,
T content,
ApiController^ controller
)
new :
routeName:string *
routeValues:IDictionary<string, Object> *
content:'T *
controller:ApiController -> CreatedAtRouteNegotiatedContentResult
Public Sub New (
routeName As String,
routeValues As IDictionary(Of String, Object),
content As T,
controller As ApiController
)
Parameters
routeName
Type: System.StringThe name of the route to use for generating the URL.
routeValues
Type: System.Collections.Generic.IDictionary<String, Object>The route data to use for generating the URL.
content
Type: TThe content value to negotiate and format in the entity body.
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
Return to top
CreatedAtRouteNegotiatedContentResult<T> Constructor (String, IDictionary<String, Object>, T, UrlHelper, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)
Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided.
Syntax
public CreatedAtRouteNegotiatedContentResult(
string routeName,
IDictionary<string, object> routeValues,
T content,
UrlHelper urlFactory,
IContentNegotiator contentNegotiator,
HttpRequestMessage request,
IEnumerable<MediaTypeFormatter> formatters
)
public:
CreatedAtRouteNegotiatedContentResult(
String^ routeName,
IDictionary<String^, Object^>^ routeValues,
T content,
UrlHelper^ urlFactory,
IContentNegotiator^ contentNegotiator,
HttpRequestMessage^ request,
IEnumerable<MediaTypeFormatter^>^ formatters
)
new :
routeName:string *
routeValues:IDictionary<string, Object> *
content:'T *
urlFactory:UrlHelper *
contentNegotiator:IContentNegotiator *
request:HttpRequestMessage *
formatters:IEnumerable<MediaTypeFormatter> -> CreatedAtRouteNegotiatedContentResult
Public Sub New (
routeName As String,
routeValues As IDictionary(Of String, Object),
content As T,
urlFactory As UrlHelper,
contentNegotiator As IContentNegotiator,
request As HttpRequestMessage,
formatters As IEnumerable(Of MediaTypeFormatter)
)
Parameters
routeName
Type: System.StringThe name of the route to use for generating the URL.
routeValues
Type: System.Collections.Generic.IDictionary<String, Object>The route data to use for generating the URL.
content
Type: TThe content value to negotiate and format in the entity body.
urlFactory
Type: System.Web.Http.Routing.UrlHelperThe factory to use to generate the route URL.
contentNegotiator
Type: System.Net.Http.Formatting.IContentNegotiatorThe content negotiator to handle content negotiation.
request
Type: System.Net.Http.HttpRequestMessageThe request message which led to this result.
formatters
Type: System.Collections.Generic.IEnumerable<MediaTypeFormatter>The formatters to use to negotiate and format the content.
Return to top