CreatedResult Class¶
Summary¶
An [Microsoft.AspNet.Mvc.ActionResult]() that returns a Created (201) response with a Location header.
Constructors¶
-
CreatedResult
(System.String, System.Object)¶ Initializes a new instance of the [Microsoft.AspNet.Mvc.CreatedResult](Microsoft.AspNet.Mvc.CreatedResult.yml) class with the values provided.
Arguments: - location (System.String) – The location at which the content has been created.
- value (System.Object) – The value to format in the entity body.
public CreatedResult(string location, object value)
-
Properties¶
-
Location
()¶ Gets or sets the location at which the content has been created.
Return type: System.String public string Location { get; set; }
-
Methods¶
-
OnFormatting
(Microsoft.AspNet.Mvc.ActionContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.ActionContext) –
protected override void OnFormatting(ActionContext context)
-