共用方式為


PageModel.NotFound 方法

定義

多載

NotFound()

NotFoundResult建立會產生回應的 Status404NotFound

NotFound(Object)

NotFoundObjectResult建立會產生回應的 Status404NotFound

NotFound()

來源:
PageModel.cs
來源:
PageModel.cs
來源:
PageModel.cs

NotFoundResult建立會產生回應的 Status404NotFound

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

傳回

為回應建立 NotFoundResult 的 。

適用於

NotFound(Object)

來源:
PageModel.cs
來源:
PageModel.cs
來源:
PageModel.cs

NotFoundObjectResult建立會產生回應的 Status404NotFound

public:
 virtual Microsoft::AspNetCore::Mvc::NotFoundObjectResult ^ NotFound(System::Object ^ value);
public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object value);
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 的 。

適用於