TypedResults.NotFound Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NotFound() |
Produces a Status404NotFound response. |
NotFound<TValue>(TValue) |
Produces a Status404NotFound response. |
NotFound()
- Source:
- TypedResults.cs
Produces a Status404NotFound response.
public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound ();
static member NotFound : unit -> Microsoft.AspNetCore.Http.HttpResults.NotFound
Public Shared Function NotFound () As NotFound
Returns
The created NotFound for the response.
Applies to
NotFound<TValue>(TValue)
- Source:
- TypedResults.cs
Produces a Status404NotFound response.
public static Microsoft.AspNetCore.Http.HttpResults.NotFound<TValue> NotFound<TValue> (TValue? value);
static member NotFound : 'Value -> Microsoft.AspNetCore.Http.HttpResults.NotFound<'Value>
Public Shared Function NotFound(Of TValue) (value As TValue) As NotFound(Of TValue)
Type Parameters
- TValue
The type of object that will be JSON serialized to the response body.
Parameters
- value
- TValue
The value to be included in the HTTP response body.
Returns
The created NotFound<TValue> for the response.