PageModel.NotFound Method

Definition

Overloads

NotFound(Object)

Creates an NotFoundObjectResult that produces a Status404NotFound response.

NotFound()

Creates an NotFoundResult that produces a Status404NotFound response.

NotFound(Object)

Creates an NotFoundObjectResult that produces a Status404NotFound response.

public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object value);
Parameters
value
Object
Returns

The created NotFoundObjectResult for the response.

NotFound()

Creates an NotFoundResult that produces a Status404NotFound response.

public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound ();
Returns

The created NotFoundResult for the response.

Applies to