PageBase.NotFound 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
NotFound() |
NotFoundResult创建生成响应的 Status404NotFound 。 |
NotFound(Object) |
NotFoundObjectResult创建生成响应的 Status404NotFound 。 |
NotFound()
- Source:
- PageBase.cs
- Source:
- PageBase.cs
- Source:
- PageBase.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)
- Source:
- PageBase.cs
- Source:
- PageBase.cs
- Source:
- PageBase.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 。