TypedResults.Conflict Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Conflict() |
Produces a Status409Conflict response. |
Conflict<TValue>(TValue) |
Produces a Status409Conflict response. |
Conflict()
- Source:
- TypedResults.cs
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)
- Source:
- TypedResults.cs
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.