Results.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, Object) |
Produces a Status202Accepted response. |
Accepted<TValue>(String, TValue) |
Produces a Status202Accepted response. |
Accepted(String, Object)
- Source:
- Results.cs
Produces a Status202Accepted response.
public static Microsoft.AspNetCore.Http.IResult Accepted (string? uri = default, object? value = default);
static member Accepted : string * obj -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Accepted (Optional uri As String = Nothing, Optional value As Object = Nothing) As IResult
Parameters
- uri
- String
The URI with the location at which the status of requested content can be monitored.
- value
- Object
The optional content value to format in the response body.
Returns
The created IResult for the response.
Applies to
Accepted<TValue>(String, TValue)
- Source:
- Results.cs
Produces a Status202Accepted response.
public static Microsoft.AspNetCore.Http.IResult Accepted<TValue> (string? uri = default, TValue? value = default);
static member Accepted : string * 'Value -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Accepted(Of TValue) (Optional uri As String = Nothing, Optional value As TValue = Nothing) As IResult
Type Parameters
- TValue
Parameters
- uri
- String
The URI with the location at which the status of requested content can be monitored.
- value
- TValue
The optional content value to format in the response body.
Returns
The created IResult for the response.