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