TypedResults.Created 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
Created() |
Produces a Status201Created response. |
Created(String) |
Produces a Status201Created response. |
Created(Uri) |
Produces a Status201Created response. |
Created<TValue>(String, TValue) |
Produces a Status201Created response. |
Created<TValue>(Uri, TValue) |
Produces a Status201Created response. |
Created()
Produces a Status201Created response.
public static Microsoft.AspNetCore.Http.HttpResults.Created Created ();
static member Created : unit -> Microsoft.AspNetCore.Http.HttpResults.Created
Public Shared Function Created () As Created
Returns
The created Created for the response.
Applies to
Created(String)
Produces a Status201Created response.
public static Microsoft.AspNetCore.Http.HttpResults.Created Created (string uri);
public static Microsoft.AspNetCore.Http.HttpResults.Created Created (string? uri);
static member Created : string -> Microsoft.AspNetCore.Http.HttpResults.Created
Public Shared Function Created (uri As String) As Created
Parameters
- uri
- String
The URI at which the content has been created.
Returns
The created Created for the response.
Applies to
Created(Uri)
Produces a Status201Created response.
public static Microsoft.AspNetCore.Http.HttpResults.Created Created (Uri uri);
public static Microsoft.AspNetCore.Http.HttpResults.Created Created (Uri? uri);
static member Created : Uri -> Microsoft.AspNetCore.Http.HttpResults.Created
Public Shared Function Created (uri As Uri) As Created
Parameters
- uri
- Uri
The URI at which the content has been created.
Returns
The created Created for the response.
Applies to
Created<TValue>(String, TValue)
Produces a Status201Created response.
public static Microsoft.AspNetCore.Http.HttpResults.Created<TValue> Created<TValue> (string uri, TValue? value);
public static Microsoft.AspNetCore.Http.HttpResults.Created<TValue> Created<TValue> (string? uri, TValue? value);
static member Created : string * 'Value -> Microsoft.AspNetCore.Http.HttpResults.Created<'Value>
Public Shared Function Created(Of TValue) (uri As String, value As TValue) As Created(Of TValue)
Type Parameters
- TValue
The type of object that will be JSON serialized to the response body.
Parameters
- uri
- String
The URI at which the content has been created.
- value
- TValue
The value to be included in the HTTP response body.
Returns
The created Created<TValue> for the response.
Applies to
Created<TValue>(Uri, TValue)
Produces a Status201Created response.
public static Microsoft.AspNetCore.Http.HttpResults.Created<TValue> Created<TValue> (Uri uri, TValue? value);
public static Microsoft.AspNetCore.Http.HttpResults.Created<TValue> Created<TValue> (Uri? uri, TValue? value);
static member Created : Uri * 'Value -> Microsoft.AspNetCore.Http.HttpResults.Created<'Value>
Public Shared Function Created(Of TValue) (uri As Uri, value As TValue) As Created(Of TValue)
Type Parameters
- TValue
The type of object that will be JSON serialized to the response body.
Parameters
- uri
- Uri
The URI at which the content has been created.
- value
- TValue
The value to be included in the HTTP response body.
Returns
The created Created<TValue> for the response.