Partager via


ControllerBase.Created Méthode

Définition

Surcharges

Created()

Crée un CreatedResult objet qui produit une Status201Created réponse.

Created(String, Object)

Crée un CreatedResult objet qui produit une Status201Created réponse.

Created(Uri, Object)

Crée un CreatedResult objet qui produit une Status201Created réponse.

Created()

Source:
ControllerBase.cs

Crée un CreatedResult objet qui produit une Status201Created réponse.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : unit -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : unit -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created () As CreatedResult

Retours

créé CreatedResult pour la réponse.

Attributs

S’applique à

Created(String, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crée un CreatedResult objet qui produit une Status201Created réponse.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(System::String ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object? value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string? uri, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (uri As String, value As Object) As CreatedResult

Paramètres

uri
String

URI auquel le contenu a été créé.

value
Object

La valeur de contenu pour formater le corps de l'entité.

Retours

créé CreatedResult pour la réponse.

Attributs

S’applique à

Created(Uri, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crée un CreatedResult objet qui produit une Status201Created réponse.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(Uri ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object? value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri? uri, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (uri As Uri, value As Object) As CreatedResult

Paramètres

uri
Uri

URI auquel le contenu a été créé.

value
Object

La valeur de contenu pour formater le corps de l'entité.

Retours

créé CreatedResult pour la réponse.

Attributs

S’applique à