Results.AcceptedAtRoute Method
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.
Overloads
AcceptedAtRoute(String, RouteValueDictionary, Object) |
Produces a Status202Accepted response. |
AcceptedAtRoute(String, Object, Object) |
Produces a Status202Accepted response. |
AcceptedAtRoute<TValue>(String, RouteValueDictionary, TValue) |
Produces a Status202Accepted response. |
AcceptedAtRoute<TValue>(String, Object, TValue) |
Produces a Status202Accepted response. |
AcceptedAtRoute(String, RouteValueDictionary, Object)
- Source:
- Results.cs
Produces a Status202Accepted response.
public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute (string? routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary? routeValues, object? value = default);
static member AcceptedAtRoute : string * Microsoft.AspNetCore.Routing.RouteValueDictionary * obj -> Microsoft.AspNetCore.Http.IResult
Public Shared Function AcceptedAtRoute (routeName As String, routeValues As RouteValueDictionary, Optional value As Object = Nothing) As IResult
Parameters
- routeName
- String
The name of the route to use for generating the URL.
- routeValues
- RouteValueDictionary
The route data to use for generating the URL.
- value
- Object
The optional content value to format in the response body.
Returns
The created IResult for the response.
Applies to
AcceptedAtRoute(String, Object, Object)
- Source:
- Results.cs
Produces a Status202Accepted response.
public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute (string? routeName = default, object? routeValues = default, object? value = default);
static member AcceptedAtRoute : string * obj * obj -> Microsoft.AspNetCore.Http.IResult
Public Shared Function AcceptedAtRoute (Optional routeName As String = Nothing, Optional routeValues As Object = Nothing, Optional value As Object = Nothing) As IResult
Parameters
- routeName
- String
The name of the route to use for generating the URL.
- routeValues
- Object
The route data to use for generating the URL.
- value
- Object
The optional content value to format in the response body.
Returns
The created IResult for the response.
Applies to
AcceptedAtRoute<TValue>(String, RouteValueDictionary, TValue)
- Source:
- Results.cs
Produces a Status202Accepted response.
public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute<TValue> (string? routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary? routeValues, TValue? value = default);
static member AcceptedAtRoute : string * Microsoft.AspNetCore.Routing.RouteValueDictionary * 'Value -> Microsoft.AspNetCore.Http.IResult
Public Shared Function AcceptedAtRoute(Of TValue) (routeName As String, routeValues As RouteValueDictionary, Optional value As TValue = Nothing) As IResult
Type Parameters
- TValue
Parameters
- routeName
- String
The name of the route to use for generating the URL.
- routeValues
- RouteValueDictionary
The route data to use for generating the URL.
- value
- TValue
The optional content value to format in the response body.
Returns
The created IResult for the response.
Applies to
AcceptedAtRoute<TValue>(String, Object, TValue)
- Source:
- Results.cs
Produces a Status202Accepted response.
public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute<TValue> (string? routeName = default, object? routeValues = default, TValue? value = default);
static member AcceptedAtRoute : string * obj * 'Value -> Microsoft.AspNetCore.Http.IResult
Public Shared Function AcceptedAtRoute(Of TValue) (Optional routeName As String = Nothing, Optional routeValues As Object = Nothing, Optional value As TValue = Nothing) As IResult
Type Parameters
- TValue
Parameters
- routeName
- String
The name of the route to use for generating the URL.
- routeValues
- Object
The route data to use for generating the URL.
- value
- TValue
The optional content value to format in the response body.
Returns
The created IResult for the response.