Results.AcceptedAtRoute 方法

定义

重载

AcceptedAtRoute(String, RouteValueDictionary, Object)

生成 Status202Accepted 响应。

AcceptedAtRoute(String, Object, Object)

生成 Status202Accepted 响应。

AcceptedAtRoute<TValue>(String, RouteValueDictionary, TValue)

生成 Status202Accepted 响应。

AcceptedAtRoute<TValue>(String, Object, TValue)

生成 Status202Accepted 响应。

AcceptedAtRoute(String, RouteValueDictionary, Object)

Source:
Results.cs

生成 Status202Accepted 响应。

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

参数

routeName
String

用于生成 URL 的路由的名称。

routeValues
RouteValueDictionary

用于生成 URL 的路由数据。

value
Object

要在响应正文中设置格式的可选内容值。

返回

为响应创建的 IResult

适用于

AcceptedAtRoute(String, Object, Object)

Source:
Results.cs

生成 Status202Accepted 响应。

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

参数

routeName
String

用于生成 URL 的路由的名称。

routeValues
Object

用于生成 URL 的路由数据。

value
Object

要在响应正文中设置格式的可选内容值。

返回

为响应创建的 IResult

适用于

AcceptedAtRoute<TValue>(String, RouteValueDictionary, TValue)

Source:
Results.cs

生成 Status202Accepted 响应。

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

类型参数

TValue

参数

routeName
String

用于生成 URL 的路由的名称。

routeValues
RouteValueDictionary

用于生成 URL 的路由数据。

value
TValue

要在响应正文中设置格式的可选内容值。

返回

为响应创建的 IResult

适用于

AcceptedAtRoute<TValue>(String, Object, TValue)

Source:
Results.cs

生成 Status202Accepted 响应。

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

类型参数

TValue

参数

routeName
String

用于生成 URL 的路由的名称。

routeValues
Object

用于生成 URL 的路由数据。

value
TValue

要在响应正文中设置格式的可选内容值。

返回

为响应创建的 IResult

适用于