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

實體主體中要格式化的值。

適用於