Dela via


Results.Conflict Method

Definition

Overloads

Conflict(Object)

Produces a Status409Conflict response.

Conflict<TValue>(TValue)

Produces a Status409Conflict response.

Conflict(Object)

Source:
Results.cs

Produces a Status409Conflict response.

public static Microsoft.AspNetCore.Http.IResult Conflict (object? error = default);
static member Conflict : obj -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Conflict (Optional error As Object = Nothing) As IResult

Parameters

error
Object

An error object to be included in the HTTP response body.

Returns

The created IResult for the response.

Applies to

Conflict<TValue>(TValue)

Source:
Results.cs

Produces a Status409Conflict response.

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

Type Parameters

TValue

Parameters

error
TValue

An error object to be included in the HTTP response body.

Returns

The created IResult for the response.

Applies to