Bagikan melalui


ControllerBase.UnprocessableEntity Metode

Definisi

Overload

UnprocessableEntity()

Membuat yang UnprocessableEntityResult menghasilkan Status422UnprocessableEntity respons.

UnprocessableEntity(ModelStateDictionary)

Membuat yang UnprocessableEntityObjectResult menghasilkan Status422UnprocessableEntity respons.

UnprocessableEntity(Object)

Membuat yang UnprocessableEntityObjectResult menghasilkan Status422UnprocessableEntity respons.

UnprocessableEntity()

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

Membuat yang UnprocessableEntityResult menghasilkan Status422UnprocessableEntity respons.

public:
 virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityResult ^ UnprocessableEntity();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityResult UnprocessableEntity ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
override this.UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
Public Overridable Function UnprocessableEntity () As UnprocessableEntityResult

Mengembalikan

yang dibuat UnprocessableEntityResult untuk respons.

Atribut

Berlaku untuk

UnprocessableEntity(ModelStateDictionary)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
public:
 virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityObjectResult ^ UnprocessableEntity(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
override this.UnprocessableEntity : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
Public Overridable Function UnprocessableEntity (modelState As ModelStateDictionary) As UnprocessableEntityObjectResult

Parameter

modelState
ModelStateDictionary

Kesalahan ModelStateDictionary yang berisi untuk dikembalikan ke klien.

Mengembalikan

yang dibuat UnprocessableEntityObjectResult untuk respons.

Atribut

Berlaku untuk

UnprocessableEntity(Object)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
public:
 virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityObjectResult ^ UnprocessableEntity(System::Object ^ error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (object error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (object? error);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : obj -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
override this.UnprocessableEntity : obj -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
Public Overridable Function UnprocessableEntity (error As Object) As UnprocessableEntityObjectResult

Parameter

error
Object

Objek kesalahan yang akan dikembalikan ke klien.

Mengembalikan

yang dibuat UnprocessableEntityObjectResult untuk respons.

Atribut

Berlaku untuk