Share via


TypedResults.Accepted Method

Definition

Overloads

Accepted(String)

Produces a Status202Accepted response.

Accepted(Uri)

Produces a Status202Accepted response.

Accepted<TValue>(String, TValue)

Produces a Status202Accepted response.

Accepted<TValue>(Uri, TValue)

Produces a Status202Accepted response.

Accepted(String)

Produces a Status202Accepted response.

public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted (string? uri);
static member Accepted : string -> Microsoft.AspNetCore.Http.HttpResults.Accepted
Public Shared Function Accepted (uri As String) As Accepted

Parameters

uri
String

The URI with the location at which the status of requested content can be monitored.

Returns

The created Accepted for the response.

Applies to

Accepted(Uri)

Produces a Status202Accepted response.

public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted (Uri uri);
static member Accepted : Uri -> Microsoft.AspNetCore.Http.HttpResults.Accepted
Public Shared Function Accepted (uri As Uri) As Accepted

Parameters

uri
Uri

The URI with the location at which the status of requested content can be monitored.

Returns

The created Accepted for the response.

Applies to

Accepted<TValue>(String, TValue)

Produces a Status202Accepted response.

public static Microsoft.AspNetCore.Http.HttpResults.Accepted<TValue> Accepted<TValue> (string? uri, TValue? value);
static member Accepted : string * 'Value -> Microsoft.AspNetCore.Http.HttpResults.Accepted<'Value>
Public Shared Function Accepted(Of TValue) (uri As String, value As TValue) As Accepted(Of TValue)

Type Parameters

TValue

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

Parameters

uri
String

The URI with the location at which the status of requested content can be monitored.

value
TValue

The value to be included in the HTTP response body.

Returns

The created Accepted<TValue> for the response.

Applies to

Accepted<TValue>(Uri, TValue)

Produces a Status202Accepted response.

public static Microsoft.AspNetCore.Http.HttpResults.Accepted<TValue> Accepted<TValue> (Uri uri, TValue? value);
static member Accepted : Uri * 'Value -> Microsoft.AspNetCore.Http.HttpResults.Accepted<'Value>
Public Shared Function Accepted(Of TValue) (uri As Uri, value As TValue) As Accepted(Of TValue)

Type Parameters

TValue

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

Parameters

uri
Uri

The URI with the location at which the status of requested content can be monitored.

value
TValue

The value to be included in the HTTP response body.

Returns

The created Accepted<TValue> for the response.

Applies to