Microsoft.​Asp​Net​Core.​Mvc Microsoft.​Asp​Net​Core.​Mvc Namespace

Classes

AcceptVerbsAttribute AcceptVerbsAttribute Specifies what HTTP methods an action supports.
ActionContext ActionContext Context object for execution of action which has been selected as part of an HTTP request.
ActionContextAttribute ActionContextAttribute Specifies that a controller property should be set with the current ActionContext when creating the controller. The property must have a public set method.
ActionNameAttribute ActionNameAttribute Specifies the name of an action.
ActionResult ActionResult A default implementation of IActionResult.
ApiExplorerSettingsAttribute ApiExplorerSettingsAttribute Controls the visibility and group name for an ApiDescription of the associated controller class or action method.
AreaAttribute AreaAttribute Specifies the area containing a controller or action.
AutoValidateAntiforgeryTokenAttribute AutoValidateAntiforgeryTokenAttribute An attribute that causes validation of antiforgery tokens for all unsafe HTTP methods. An antiforgery token is required for HTTP methods other than GET, HEAD, OPTIONS, and TRACE.
BadRequestObjectResult BadRequestObjectResult An ObjectResult that when executed will produce a Bad Request (400) response.
BadRequestResult BadRequestResult A StatusCodeResult that when executed will produce a Bad Request (400) response.
BindAttribute BindAttribute This attribute can be used on action parameters and types, to indicate model level metadata.
CacheProfile CacheProfile Defines a set of settings which can be used for response caching.
ChallengeResult ChallengeResult An ActionResult that on execution invokes AuthenticationManager.ChallengeAsync.
ConsumesAttribute ConsumesAttribute A filter that specifies the supported request content types. ContentTypes is used to select an action when there would otherwise be multiple matches.
ContentResult ContentResult
Controller Controller A base class for an MVC controller with view support.
ControllerAttribute ControllerAttribute Indicates that the type and any derived types that this attribute is applied to are considered a controller by the default controller discovery mechanism, unless NonControllerAttribute is applied to any type in the hierarchy.
ControllerBase ControllerBase A base class for an MVC controller without view support.
ControllerContext ControllerContext The context associated with the current request for a controller.
ControllerContextAttribute ControllerContextAttribute Specifies that a controller property should be set with the current ControllerContext when creating the controller. The property must have a public set method.
CreatedAtActionResult CreatedAtActionResult An ActionResult that returns a Created (201) response with a Location header.
CreatedAtRouteResult CreatedAtRouteResult An ActionResult that returns a Created (201) response with a Location header.
CreatedResult CreatedResult An ActionResult that returns a Created (201) response with a Location header.
EmptyResult EmptyResult Represents an ActionResult that when executed will do nothing.
FileContentResult FileContentResult Represents an ActionResult that when executed will write a binary file to the response.
FileResult FileResult Represents an ActionResult that when executed will write a file as the response.
FileStreamResult FileStreamResult Represents an ActionResult that when executed will write a file from a stream to the response.
ForbidResult ForbidResult An ActionResult that on execution invokes AuthenticationManager.ForbidAsync.
FormatFilterAttribute FormatFilterAttribute A filter that will use the format value in the route data or query string to set the content type on an ObjectResult returned from an action.
FromBodyAttribute FromBodyAttribute Specifies that a parameter or property should be bound using the request body.
FromFormAttribute FromFormAttribute Specifies that a parameter or property should be bound using form-data in the request body.
FromHeaderAttribute FromHeaderAttribute Specifies that a parameter or property should be bound using the request headers.
FromQueryAttribute FromQueryAttribute Specifies that a parameter or property should be bound using the request query string.
FromRouteAttribute FromRouteAttribute Specifies that a parameter or property should be bound using route-data from the current request.
FromServicesAttribute FromServicesAttribute Specifies that an action parameter should be bound using the request services.
HiddenInputAttribute HiddenInputAttribute Indicates associated property or all properties of associated type should be edited using an <input> element of type "hidden".
HttpDeleteAttribute HttpDeleteAttribute Identifies an action that only supports the HTTP DELETE method.
HttpGetAttribute HttpGetAttribute Identifies an action that only supports the HTTP GET method.
HttpHeadAttribute HttpHeadAttribute Identifies an action that only supports the HTTP HEAD method.
HttpOptionsAttribute HttpOptionsAttribute Identifies an action that only supports the HTTP OPTIONS method.
HttpPatchAttribute HttpPatchAttribute Identifies an action that only supports the HTTP PATCH method.
HttpPostAttribute HttpPostAttribute Identifies an action that only supports the HTTP POST method.
HttpPutAttribute HttpPutAttribute Identifies an action that only supports the HTTP PUT method.
IgnoreAntiforgeryTokenAttribute IgnoreAntiforgeryTokenAttribute An filter that skips antiforgery token validation.
JsonPatchExtensions JsonPatchExtensions Extensions for JsonPatchDocument<TModel>
JsonResult JsonResult An action result which formats the given object as JSON.
LocalRedirectResult LocalRedirectResult An ActionResult that returns a redirect to the supplied local URL.
ModelBinderAttribute ModelBinderAttribute An attribute that can specify a model name or type of IModelBinder to use for binding.
ModelMetadataTypeAttribute ModelMetadataTypeAttribute This attribute specifies the metadata class to associate with a data model class.
MvcJsonOptions MvcJsonOptions Provides programmatic configuration for JSON in the MVC framework.
MvcOptions MvcOptions Provides programmatic configuration for the MVC framework.
MvcViewOptions MvcViewOptions Provides programmatic configuration for views in the MVC framework.
NoContentResult NoContentResult
NonActionAttribute NonActionAttribute Indicates that a controller method is not an action method.
NonControllerAttribute NonControllerAttribute Indicates that the type and any derived types that this attribute is applied to is not considered a controller by the default controller discovery mechanism.
NotFoundObjectResult NotFoundObjectResult An ObjectResult that when executed will produce a Not Found (404) response.
NotFoundResult NotFoundResult Represents an StatusCodeResult that when executed will produce a Not Found (404) response.
ObjectResult ObjectResult
OkObjectResult OkObjectResult An ObjectResult that when executed performs content negotiation, formats the entity body, and will produce a Status200OK response if negotiation and formatting succeed.
OkResult OkResult An StatusCodeResult that when executed will produce an empty Status200OK response.
PartialViewResult PartialViewResult Represents an ActionResult that renders a partial view to the response.
PhysicalFileResult PhysicalFileResult A FileResult on execution will write a file from disk to the response using mechanisms provided by the host.
ProducesAttribute ProducesAttribute A filter that specifies the expected System.Type the action will return and the supported response content types. The ContentTypes value is used to set ContentTypes.
ProducesResponseTypeAttribute ProducesResponseTypeAttribute A filter that specifies the type of the value and status code returned by the action.
RazorViewEngineOptionsSetup RazorViewEngineOptionsSetup Sets up default options for RazorViewEngineOptions.
RedirectResult RedirectResult
RedirectToActionResult RedirectToActionResult
RedirectToRouteResult RedirectToRouteResult
RemoteAttribute RemoteAttribute A System.ComponentModel.DataAnnotations.ValidationAttribute which configures Unobtrusive validation to send an Ajax request to the web site. The invoked action should return JSON indicating whether the value is valid.
RequireHttpsAttribute RequireHttpsAttribute An authorization filter that confirms requests are received over HTTPS.
ResponseCacheAttribute ResponseCacheAttribute Specifies the parameters necessary for setting appropriate headers in response caching.
RouteAttribute RouteAttribute Specifies an attribute route on a controller.
SerializableError SerializableError Defines a serializable container for storing ModelState information. This information is stored as key/value pairs.
ServiceFilterAttribute ServiceFilterAttribute A filter that finds another filter in an System.IServiceProvider.
SignInResult SignInResult An ActionResult that on execution invokes AuthenticationManager.SignInAsync.
SignOutResult SignOutResult An ActionResult that on execution invokes AuthenticationManager.SignOutAsync.
SkipStatusCodePagesAttribute SkipStatusCodePagesAttribute A filter that prevents execution of the StatusCodePages middleware.
StatusCodeResult StatusCodeResult Represents an ActionResult that when executed will produce an HTTP response with the given response status code.
TypeFilterAttribute TypeFilterAttribute A filter that creates another filter of type ImplementationType, retrieving missing constructor arguments from dependency injection if available there.
UnauthorizedResult UnauthorizedResult Represents an UnauthorizedResult that when executed will produce an Unauthorized (401) response.
UnsupportedMediaTypeResult UnsupportedMediaTypeResult A StatusCodeResult that when executed will produce a UnsupportedMediaType (415) response.
UrlHelperExtensions UrlHelperExtensions
ValidateAntiForgeryTokenAttribute ValidateAntiForgeryTokenAttribute Specifies that the class or method that this attribute is applied validates the anti-forgery token. If the anti-forgery token is not available, or if the token is invalid, the validation will fail and the action method will not execute.
ViewComponent ViewComponent A base class for view components.
ViewComponentAttribute ViewComponentAttribute Indicates the class and all subclasses are view components. Optionally specifies a view component's name. If defining a base class for multiple view components, associate this attribute with that base.
ViewComponentResult ViewComponentResult An IActionResult which renders a view component to the response.
ViewResult ViewResult Represents an ActionResult that renders a view to the response.
VirtualFileResult VirtualFileResult A FileResult that on execution writes the file specified using a virtual path to the response using mechanisms provided by the host.

Interfaces

IActionResult IActionResult Defines a contract that represents the result of an action method.
IUrlHelper IUrlHelper Defines the contract for the helper to build URLs for ASP.NET MVC within an application.
IViewComponentHelper IViewComponentHelper Supports the rendering of view components in a view.
IViewComponentResult IViewComponentResult Result type of a ViewComponent.

Enums

ResponseCacheLocation ResponseCacheLocation Determines the value for the "Cache-control" header in the response.