TypedResults.Conflict Method

Definition

Overloads

Conflict()

Produces a Status409Conflict response.

Conflict<TValue>(TValue)

Produces a Status409Conflict response.

Conflict()

Produces a Status409Conflict response.

public static Microsoft.AspNetCore.Http.HttpResults.Conflict Conflict ();
static member Conflict : unit -> Microsoft.AspNetCore.Http.HttpResults.Conflict
Public Shared Function Conflict () As Conflict

Returns

The created Conflict for the response.

Applies to

Conflict<TValue>(TValue)

Produces a Status409Conflict response.

public static Microsoft.AspNetCore.Http.HttpResults.Conflict<TValue> Conflict<TValue> (TValue? error);
static member Conflict : 'Value -> Microsoft.AspNetCore.Http.HttpResults.Conflict<'Value>
Public Shared Function Conflict(Of TValue) (error As TValue) As Conflict(Of TValue)

Type Parameters

TValue

The type of object that will be JSON serialized to the response body.

Parameters

error
TValue

The value to be included in the HTTP response body.

Returns

The created Conflict<TValue> for the response.

Applies to