共用方式為


Controller.HttpNotFound 方法

定義

多載

HttpNotFound()

傳回 HttpNotFoundResult 類別的執行個體。

HttpNotFound(String)

傳回 HttpNotFoundResult 類別的執行個體。

HttpNotFound()

傳回 HttpNotFoundResult 類別的執行個體。

protected internal System.Web.Mvc.HttpNotFoundResult HttpNotFound ();
member this.HttpNotFound : unit -> System.Web.Mvc.HttpNotFoundResult
Protected Friend Function HttpNotFound () As HttpNotFoundResult

傳回

HttpNotFoundResult 類別的執行個體。

適用於

HttpNotFound(String)

傳回 HttpNotFoundResult 類別的執行個體。

protected internal virtual System.Web.Mvc.HttpNotFoundResult HttpNotFound (string statusDescription);
abstract member HttpNotFound : string -> System.Web.Mvc.HttpNotFoundResult
override this.HttpNotFound : string -> System.Web.Mvc.HttpNotFoundResult
Protected Friend Overridable Function HttpNotFound (statusDescription As String) As HttpNotFoundResult

參數

statusDescription
String

狀態描述。

傳回

HttpNotFoundResult 類別的執行個體。

適用於