Microsoft.AspNetCore.Mvc Namespace

namespace Microsoft.AspNetCore.Mvc

Interfaces

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

Classes

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

Enumerations

enum ResponseCacheLocation
Determines the value for the “Cache-control” header in the response.