Compartilhar via


ControllerBase.Conflict Método

Definição

Sobrecargas

Conflict(Object)

Cria um ConflictObjectResult que produz uma resposta Status409Conflict.

Conflict(ModelStateDictionary)

Cria um ConflictObjectResult que produz uma resposta Status409Conflict.

Conflict()

Cria um ConflictResult que produz uma resposta Status409Conflict.

Conflict(Object)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um ConflictObjectResult que produz uma resposta 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

Contém erros a serem retornados ao cliente.

Retornos

O ConflictObjectResult criado para a resposta.

Atributos

Aplica-se a

Conflict(ModelStateDictionary)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um ConflictObjectResult que produz uma resposta 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

O ModelStateDictionary que contém erros a serem retornados ao cliente.

Retornos

O ConflictObjectResult criado para a resposta.

Atributos

Aplica-se a

Conflict()

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um ConflictResult que produz uma resposta 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

Retornos

O ConflictResult criado para a resposta.

Atributos

Aplica-se a