ControllerBase.Conflict Method

Definition

Overloads

Conflict(Object)

Creates a ConflictObjectResult that produces a Status409Conflict response.

Conflict(ModelStateDictionary)

Creates a ConflictObjectResult that produces a Status409Conflict response.

Conflict()

Creates a ConflictResult that produces a Status409Conflict response.

Conflict(Object)

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

Creates a ConflictObjectResult that produces a Status409Conflict response.

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

Parameters

error
Object

Contains errors to be returned to the client.

Returns

The created ConflictObjectResult for the response.

Attributes

Applies to

Conflict(ModelStateDictionary)

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

Creates a ConflictObjectResult that produces a Status409Conflict response.

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

Parameters

modelState
ModelStateDictionary

The ModelStateDictionary containing errors to be returned to the client.

Returns

The created ConflictObjectResult for the response.

Attributes

Applies to

Conflict()

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

Creates a ConflictResult that produces a Status409Conflict response.

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

Returns

The created ConflictResult for the response.

Attributes

Applies to