ControllerBase.NotFound 方法

定義

多載

NotFound(Object)

建立 NotFoundObjectResult 產生 Status404NotFound 回應的。

NotFound()

建立 NotFoundResult 產生 Status404NotFound 回應的。

NotFound(Object)

建立 NotFoundObjectResult 產生 Status404NotFound 回應的。

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

參數

value
Object

傳回

NotFoundObjectResult

針對回應所建立的 NotFoundObjectResult

屬性

適用於

NotFound()

建立 NotFoundResult 產生 Status404NotFound 回應的。

public:
 virtual Microsoft::AspNetCore::Mvc::NotFoundResult ^ NotFound();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member NotFound : unit -> Microsoft.AspNetCore.Mvc.NotFoundResult
override this.NotFound : unit -> Microsoft.AspNetCore.Mvc.NotFoundResult
Public Overridable Function NotFound () As NotFoundResult

傳回

NotFoundResult

針對回應所建立的 NotFoundResult

屬性

適用於