CreatedAtActionResult(String, String, Object, Object) 构造函数

定义

使用提供的值初始化 的新实例 CreatedAtActionResult

public:
 CreatedAtActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::Object ^ value);
public CreatedAtActionResult (string actionName, string controllerName, object routeValues, object value);
public CreatedAtActionResult (string? actionName, string? controllerName, object? routeValues, object? value);
new Microsoft.AspNetCore.Mvc.CreatedAtActionResult : string * string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, value As Object)

参数

actionName
String

用于生成 URL 的操作的名称。

controllerName
String

用于生成 URL 的控制器的名称。

routeValues
Object

用于生成 URL 的路由数据。

value
Object

要在实体正文中设置格式的值。

适用于