ControllerBase.NotFound Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
NotFound(Object) |
Crea un NotFoundObjectResult che produce una risposta Status404NotFound. |
NotFound() |
Crea un NotFoundResult che produce una risposta Status404NotFound. |
NotFound(Object)
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
Crea un NotFoundObjectResult che produce una risposta Status404NotFound.
public:
virtual Microsoft::AspNetCore::Mvc::NotFoundObjectResult ^ NotFound(System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound (object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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
Parametri
- value
- Object
Restituisce
Il NotFoundObjectResult creato per la risposta.
- Attributi
Si applica a
NotFound()
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
Crea un NotFoundResult che produce una risposta Status404NotFound.
public:
virtual Microsoft::AspNetCore::Mvc::NotFoundResult ^ NotFound();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member NotFound : unit -> Microsoft.AspNetCore.Mvc.NotFoundResult
override this.NotFound : unit -> Microsoft.AspNetCore.Mvc.NotFoundResult
Public Overridable Function NotFound () As NotFoundResult
Restituisce
Il NotFoundResult creato per la risposta.
- Attributi