ControllerBase.Created 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Created() |
建立產生 CreatedResultStatus201Created 回應的 物件。 |
Created(String, Object) |
建立產生 CreatedResultStatus201Created 回應的 物件。 |
Created(Uri, Object) |
建立產生 CreatedResultStatus201Created 回應的 物件。 |
Created()
建立產生 CreatedResultStatus201Created 回應的 物件。
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : unit -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : unit -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created () As CreatedResult
傳回
為回應建立 CreatedResult 的 。
- 屬性
適用於
Created(String, Object)
建立產生 CreatedResultStatus201Created 回應的 物件。
public:
virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(System::String ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object? value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string? uri, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (uri As String, value As Object) As CreatedResult
參數
- uri
- String
建立內容的 URI。
- value
- Object
在實體主體中格式化的內容值。
傳回
為回應建立 CreatedResult 的 。
- 屬性
適用於
Created(Uri, Object)
建立產生 CreatedResultStatus201Created 回應的 物件。
public:
virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(Uri ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object? value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri? uri, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (uri As Uri, value As Object) As CreatedResult
參數
- uri
- Uri
建立內容的 URI。
- value
- Object
在實體主體中格式化的內容值。
傳回
為回應建立 CreatedResult 的 。
- 屬性