Compartir a través de


ControllerBase.Conflict Método

Definición

Sobrecargas

Conflict(Object)

Crea un ConflictObjectResult que genera una respuesta Status409Conflict.

Conflict(ModelStateDictionary)

Crea un ConflictObjectResult que genera una respuesta Status409Conflict.

Conflict()

Crea un ConflictResult que genera una respuesta Status409Conflict.

Conflict(Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un ConflictObjectResult que genera una respuesta Status409Conflict.

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

Parámetros

error
Object

Contiene errores que se van a devolver al cliente.

Devoluciones

El ConflictObjectResult creado para la respuesta.

Atributos

Se aplica a

Conflict(ModelStateDictionary)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un ConflictObjectResult que genera una respuesta Status409Conflict.

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

Parámetros

modelState
ModelStateDictionary

El ModelStateDictionary que contiene errores que se van a devolver al cliente.

Devoluciones

El ConflictObjectResult creado para la respuesta.

Atributos

Se aplica a

Conflict()

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un ConflictResult que genera una respuesta Status409Conflict.

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

Devoluciones

El ConflictResult creado para la respuesta.

Atributos

Se aplica a