ControllerBase.AcceptedAtRoute 方法

定义

重载

AcceptedAtRoute(String, Object, Object)

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

AcceptedAtRoute(String, Object)

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

AcceptedAtRoute(Object)

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

AcceptedAtRoute(String)

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

AcceptedAtRoute(Object, Object)

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

AcceptedAtRoute(String, Object, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

public:
 virtual Microsoft::AspNetCore::Mvc::AcceptedAtRouteResult ^ AcceptedAtRoute(System::String ^ routeName, System::Object ^ routeValues, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (string routeName, object routeValues, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (string? routeName, object? routeValues, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member AcceptedAtRoute : string * obj * obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
override this.AcceptedAtRoute : string * obj * obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
Public Overridable Function AcceptedAtRoute (routeName As String, routeValues As Object, value As Object) As AcceptedAtRouteResult

参数

routeName
String

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

routeValues
Object

用于生成 URL 的路由数据。

value
Object

要在实体正文中设置格式的可选内容值;可以为 null。

返回

为响应创建的 AcceptedAtRouteResult

属性

适用于

AcceptedAtRoute(String, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

public:
 virtual Microsoft::AspNetCore::Mvc::AcceptedAtRouteResult ^ AcceptedAtRoute(System::String ^ routeName, System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (string routeName, object routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (string? routeName, object? routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member AcceptedAtRoute : string * obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
override this.AcceptedAtRoute : string * obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
Public Overridable Function AcceptedAtRoute (routeName As String, routeValues As Object) As AcceptedAtRouteResult

参数

routeName
String

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

routeValues
Object

用于生成 URL 的路由数据。

返回

为响应创建的 AcceptedAtRouteResult

属性

适用于

AcceptedAtRoute(Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

public:
 virtual Microsoft::AspNetCore::Mvc::AcceptedAtRouteResult ^ AcceptedAtRoute(System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (object routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (object? routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member AcceptedAtRoute : obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
override this.AcceptedAtRoute : obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
Public Overridable Function AcceptedAtRoute (routeValues As Object) As AcceptedAtRouteResult

参数

routeValues
Object

用于生成 URL 的路由数据。

返回

为响应创建的 AcceptedAtRouteResult

属性

适用于

AcceptedAtRoute(String)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

public:
 virtual Microsoft::AspNetCore::Mvc::AcceptedAtRouteResult ^ AcceptedAtRoute(System::String ^ routeName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (string routeName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (string? routeName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member AcceptedAtRoute : string -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
override this.AcceptedAtRoute : string -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
Public Overridable Function AcceptedAtRoute (routeName As String) As AcceptedAtRouteResult

参数

routeName
String

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

返回

为响应创建的 AcceptedAtRouteResult

属性

适用于

AcceptedAtRoute(Object, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

创建生成 Status202Accepted 响应的 AcceptedAtRouteResult 对象。

public:
 virtual Microsoft::AspNetCore::Mvc::AcceptedAtRouteResult ^ AcceptedAtRoute(System::Object ^ routeValues, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (object routeValues, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute (object? routeValues, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member AcceptedAtRoute : obj * obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
override this.AcceptedAtRoute : obj * obj -> Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult
Public Overridable Function AcceptedAtRoute (routeValues As Object, value As Object) As AcceptedAtRouteResult

参数

routeValues
Object

用于生成 URL 的路由数据。

value
Object

要在实体正文中设置格式的可选内容值;可以为 null。

返回

为响应创建的 AcceptedAtRouteResult

属性

适用于