Microsoft.AspNetCore.Mvc Microsoft.AspNetCore.Mvc Namespace

Classes

Specifies what HTTP methods an action supports.
Context object for execution of action which has been selected as part of an HTTP request.
Specifies that a controller property should be set with the current ActionContext when creating the controller. The property must have a public set method.
Specifies the name of an action.
A default implementation of IActionResult.
Controls the visibility and group name for an ApiDescription of the associated controller class or action method.
Specifies the area containing a controller or action.
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.
An ObjectResult that when executed will produce a Bad Request (400) response.
A StatusCodeResult that when executed will produce a Bad Request (400) response.
This attribute can be used on action parameters and types, to indicate model level metadata.
Defines a set of settings which can be used for response caching.
An ActionResult that on execution invokes AuthenticationManager.ChallengeAsync.
A filter that specifies the supported request content types. ContentTypes is used to select an action when there would otherwise be multiple matches.
A base class for an MVC controller with view support.
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.
A base class for an MVC controller without view support.
The context associated with the current request for a controller.
Specifies that a controller property should be set with the current ControllerContext when creating the controller. The property must have a public set method.
An ActionResult that returns a Created (201) response with a Location header.
An ActionResult that returns a Created (201) response with a Location header.
An ActionResult that returns a Created (201) response with a Location header.
Represents an ActionResult that when executed will do nothing.
Represents an ActionResult that when executed will write a binary file to the response.
Represents an ActionResult that when executed will write a file as the response.
Represents an ActionResult that when executed will write a file from a stream to the response.
An ActionResult that on execution invokes AuthenticationManager.ForbidAsync.
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.
Specifies that a parameter or property should be bound using the request body.
Specifies that a parameter or property should be bound using form-data in the request body.
Specifies that a parameter or property should be bound using the request headers.
Specifies that a parameter or property should be bound using the request query string.
Specifies that a parameter or property should be bound using route-data from the current request.
Specifies that an action parameter should be bound using the request services.
Indicates associated property or all properties of associated type should be edited using an <input> element of type "hidden".
Identifies an action that only supports the HTTP DELETE method.
Identifies an action that only supports the HTTP GET method.
Identifies an action that only supports the HTTP HEAD method.
Identifies an action that only supports the HTTP OPTIONS method.
Identifies an action that only supports the HTTP PATCH method.
Identifies an action that only supports the HTTP POST method.
Identifies an action that only supports the HTTP PUT method.
An filter that skips antiforgery token validation.
Extensions for JsonPatchDocument<TModel>
An action result which formats the given object as JSON.
An ActionResult that returns a redirect to the supplied local URL.
An attribute that can specify a model name or type of IModelBinder to use for binding.
This attribute specifies the metadata class to associate with a data model class.
Provides programmatic configuration for JSON in the MVC framework.
Provides programmatic configuration for the MVC framework.
Provides programmatic configuration for views in the MVC framework.
Indicates that a controller method is not an action method.
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.
An ObjectResult that when executed will produce a Not Found (404) response.
Represents an StatusCodeResult that when executed will produce a Not Found (404) response.
An ObjectResult that when executed performs content negotiation, formats the entity body, and will produce a Status200OK response if negotiation and formatting succeed.
An StatusCodeResult that when executed will produce an empty Status200OK response.
Represents an ActionResult that renders a partial view to the response.
A FileResult on execution will write a file from disk to the response using mechanisms provided by the host.
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.
A filter that specifies the type of the value and status code returned by the action.
Sets up default options for RazorViewEngineOptions.
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.
An authorization filter that confirms requests are received over HTTPS.
Specifies the parameters necessary for setting appropriate headers in response caching.
Specifies an attribute route on a controller.
Defines a serializable container for storing ModelState information. This information is stored as key/value pairs.
A filter that finds another filter in an System.IServiceProvider.
An ActionResult that on execution invokes AuthenticationManager.SignInAsync.
An ActionResult that on execution invokes AuthenticationManager.SignOutAsync.
A filter that prevents execution of the StatusCodePages middleware.
Represents an ActionResult that when executed will produce an HTTP response with the given response status code.
A filter that creates another filter of type ImplementationType, retrieving missing constructor arguments from dependency injection if available there.
Represents an UnauthorizedResult that when executed will produce an Unauthorized (401) response.
A StatusCodeResult that when executed will produce a UnsupportedMediaType (415) response.
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.
A base class for view components.
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.
An IActionResult which renders a view component to the response.
Represents an ActionResult that renders a view to the response.
A FileResult that on execution writes the file specified using a virtual path to the response using mechanisms provided by the host.

Interfaces

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

Enums

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