TypedResults.Accepted 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
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)
- Source:
- TypedResults.cs
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)
- Source:
- TypedResults.cs
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)
- Source:
- TypedResults.cs
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)
- Source:
- TypedResults.cs
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.