HttpStatusCodeResult Class¶
Summary¶
Represents an [Microsoft.AspNet.Mvc.ActionResult]() that when executed will produce an HTTP response with the given response status code.
Constructors¶
-
HttpStatusCodeResult
(System.Int32)¶ Initializes a new instance of the [Microsoft.AspNet.Mvc.HttpStatusCodeResult](Microsoft.AspNet.Mvc.HttpStatusCodeResult.yml) class with the given <paramref name=”statusCode” />.
Arguments: - statusCode (System.Int32) – The HTTP status code of the response.
public HttpStatusCodeResult(int statusCode)
-
Properties¶
-
StatusCode
()¶ Gets the HTTP status code.
Return type: System.Int32 public int StatusCode { get; }
-
Methods¶
-
ExecuteResult
(Microsoft.AspNet.Mvc.ActionContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.ActionContext) –
public override void ExecuteResult(ActionContext context)
-