TypedResults.AcceptedAtRoute Method

Definition

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)

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)

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)

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)

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.

Applies to