Condividi tramite


ControllerBase.Conflict Metodo

Definizione

Overload

Conflict(Object)

Crea un ConflictObjectResult che produce una risposta Status409Conflict.

Conflict(ModelStateDictionary)

Crea un ConflictObjectResult che produce una risposta Status409Conflict.

Conflict()

Crea un ConflictResult che produce una risposta Status409Conflict.

Conflict(Object)

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un ConflictObjectResult che produce una risposta 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

Parametri

error
Object

Contiene errori da restituire al client.

Restituisce

Il ConflictObjectResult creato per la risposta.

Attributi

Si applica a

Conflict(ModelStateDictionary)

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un ConflictObjectResult che produce una risposta 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

Parametri

modelState
ModelStateDictionary

Il ModelStateDictionary contenente errori da restituire al client.

Restituisce

Il ConflictObjectResult creato per la risposta.

Attributi

Si applica a

Conflict()

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un ConflictResult che produce una risposta 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

Restituisce

Il ConflictResult creato per la risposta.

Attributi

Si applica a