ControllerBase.Conflict ControllerBase.Conflict ControllerBase.Conflict Method

Definition

Overloads

Conflict(ModelStateDictionary) Conflict(ModelStateDictionary) Conflict(ModelStateDictionary)

Creates an ConflictObjectResult that produces a Status409Conflict response.

Conflict() Conflict() Conflict()

Creates an ConflictResult that produces a Status409Conflict response.

Conflict(Object) Conflict(Object) Conflict(Object)

Creates an ConflictObjectResult that produces a Status409Conflict response.

Conflict(ModelStateDictionary) Conflict(ModelStateDictionary) Conflict(ModelStateDictionary)

Creates an ConflictObjectResult that produces a Status409Conflict response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ConflictObjectResult Conflict (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
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

Parameters

modelState
ModelStateDictionary ModelStateDictionary ModelStateDictionary

The ModelStateDictionary containing errors to be returned to the client.

Returns

Conflict() Conflict() Conflict()

Creates an ConflictResult that produces a Status409Conflict response.

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

Returns

Conflict(Object) Conflict(Object) Conflict(Object)

Creates an ConflictObjectResult that produces a Status409Conflict response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ConflictObjectResult Conflict (object error);
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

Parameters

error
Object Object Object

Contains errors to be returned to the client.

Returns

Applies to