ASP.NET MVC - Reference Manual

Class

Class Description
AcceptVerbsAttribute Represents an attribute that specifies the HTTP verb that the action method will respond to.
ActionDescriptor Provides information about the action method, such as the name, controller, parameters, attributes, and filters of the action method.
ActionExecutedContext Provides the context for the ActionExecuted method of the ActionFilterAttribute class.
ActionExecutingContext Provide the context for the ActionExecuting method of the ActionFilterAttribute class.
ActionFilterAttribute Represents the base class for filter attributes.
ActionMethodSelectorAttribute Represents an attribute that affects the selection of action methods.
ActionNameAttribute Represents an attribute used for the operation name.
ActionNameSelectorAttribute Represents an attribute that can affect the selection of action methods.
ActionResult Encapsulate the result of an action method and use it to represent framework-level operations performed by the action method.
AdditionalMetadataAttribute Provide a class that implements the IMetadataAware interface to support other metadata.
AjaxHelper Represents support for rendering HTML in AJAX scenarios within views.
AjaxHelper<TModel> Represents support for rendering HTML in AJAX scenarios within strongly typed views.
AjaxRequestExtensions Represents a class that extends HttpRequestBase, adding functionality to determine if an HTTP request is an AJAX request.
AllowAnonymousAttribute Represents an attribute that marks controllers and actions to skip the AuthorizeAttribute during authorization.
AllowHtmlAttribute Allow HTML tags to be included in the model binding process by skipping property request validation. (It is strongly recommended that applications explicitly check all models with disabled request validation to prevent script attacks.)
AreaRegistration Provide a way to register one or more areas within an ASP.NET MVC application.
AreaRegistrationContext Encapsulate information required when registering a particular area within an ASP.NET MVC application.
AssociatedMetadataProvider Provide an abstract class for implementing metadata providers.
AssociatedValidatorProvider Provide an abstract class for classes that implement validation providers.
AsyncController Provide backward compatibility with ASP.NET MVC 3.
AsyncTimeoutAttribute Represents an attribute that is used to set the timeout value (in milliseconds) for asynchronous methods.
AuthorizationContext Encapsulates information required when using the AuthorizeAttribute.
AuthorizeAttribute Represents an attribute that is used to restrict access to the operation method by the caller.
BindAttribute Represents an attribute that provides details on how the model should be bound to parameters.
BuildManagerCompiledView Represents a base class for views compiled by the BuildManager class before they are rendered by the view engine.
BuildManagerViewEngine Provides a base class for the view engine.
ByteArrayModelBinder Maps browser requests to byte arrays.
CachedAssociatedMetadataProvider<TModelMetadata> Provides an abstract class for implementing cached metadata providers.
CachedDataAnnotationsMetadataAttributes Provides a container for caching System.ComponentModel.DataAnnotations attributes.
CachedDataAnnotationsModelMetadata Provides a container for caching DataAnnotationsModelMetadata.
CachedDataAnnotationsModelMetadataProvider Implements the default cached model metadata provider for ASP.NET MVC.
CachedModelMetadata<TPrototypeCache> Provides a container for cached metadata.
CancellationTokenModelBinder Provides a mechanism for propagating notifications that the model binder operation should be canceled.
ChildActionOnlyAttribute Represents a feature that is used to indicate that the operation method should only be called as a sub-operation.
ChildActionValueProvider Represents a value provider for values in a sub-operation.
ChildActionValueProviderFactory Represents a factory object that is used to create value providers for sub-operations.
ClientDataTypeModelValidatorProvider Returns a client data type model validation program.
CompareAttribute Provides an attribute for comparing two properties of a model.
ContentResult Represents a user-defined content type that is the result of an operation method.
Controller Provides methods for responding to HTTP requests made to an ASP.NET MVC website.
ControllerActionInvoker Represents a class that is responsible for invoking the operation methods of the controller.
ControllerBase Represents the base class for all MVC controllers.
ControllerBuilder Represents a class that is responsible for dynamically generating controllers.
ControllerContext Encapsulates information about the HTTP request that matches the specified RouteBase and ControllerBase instances.
ControllerDescriptor Encapsulates information about the controller, such as the controller's name, type, and action.
ControllerInstanceFilterProvider Adds a controller to the FilterProviderCollection instance.
CustomModelBinderAttribute Represents an attribute that calls a custom model binder.
DataAnnotationsModelMetadata Provides a container for the public metadata of data models, the DataAnnotationsModelMetadataProvider class, and the DataAnnotationsModelValidator class.
DataAnnotationsModelMetadataProvider Implements the default model metadata provider for ASP.NET MVC.
DataAnnotationsModelValidator Provides a model validation program.
DataAnnotationsModelValidator<TAttribute> Provides a model validation program for the specified validation type.
DataAnnotationsModelValidatorProvider Implements the default validation provider for ASP.NET MVC.
DataErrorInfoModelValidatorProvider Provides a container for the error message model validation program.
DefaultControllerFactory Represents the default registered controller factory under normal circumstances.
DefaultModelBinder Maps browser requests to data objects. This class provides a specific implementation of the model binder.
DefaultViewLocationCache Represents an in-memory cache for view locations.
DependencyResolver Provides a registration point for dependency resolvers that implement the IDependencyResolver or IServiceLocator interface.
DependencyResolverExtensions Provides a type-safe implementation of GetService and GetServices.
DictionaryValueProvider<TValue> Represents the base class for value providers whose values come from a collection that implements the IDictionary<TKey, TValue> interface.
EmptyModelMetadataProvider Provides an empty metadata provider for data models that do not require metadata.
EmptyModelValidatorProvider Provides an empty validation provider for models that do not require validation.
EmptyResult Represents a result that performs no action, such as a controller action method that does not return any content.
ExceptionContext Provides context for using the HandleErrorAttribute class.
ExpressionHelper Provides a helper class for obtaining the model name from an expression.
FieldValidationMetadata Provides a container for metadata for client-side field validation.
FileContentResult Sends the content of the binary file to the response.
FilePathResult Sends the content of the file to the response.
FileResult Represents a base class used to send binary file content to the response.
FileStreamResult Sends binary content to the response using a Stream instance.
Filter Represents a metadata class that contains references to the implementations of one or more filter interfaces, filter order, and filter scope.
FilterAttribute Represents the base class for operation and result filter attributes.
FilterAttributeFilterProvider Represents a filter provider that defines filter attributes.
FilterInfo Encapsulates information about available operation filters.
FilterProviderCollection Represents a collection of filter providers for the application.
FilterProviders Provides a registration point for filters.
FormCollection Contains the form value providers of the application.
FormContext Encapsulates information required for validating and processing input data in HTML forms.
FormValueProvider Represents the value provider that contains form values in the NameValueCollection object.
FormValueProviderFactory Represents a class that is responsible for creating a new instance of the form value provider object.
GlobalFilterCollection Represents a class that contains all global filters.
GlobalFilters Represents the collection of global filters.
HandleErrorAttribute Represents a feature that is used to handle exceptions raised by operation methods.
HandleErrorInfo Encapsulates information about handling errors raised by operation methods.
HiddenInputAttribute Represents a feature that is used to indicate whether the property value or field value should be rendered as a hidden input element.
HtmlHelper Represents support for rendering HTML controls in views.
HtmlHelper<TModel> Represents support for rendering HTML controls in strongly-typed views.
HttpDeleteAttribute Represents a feature that is used to restrict operation methods so that the method only handles HTTP DELETE requests.
HttpFileCollectionValueProvider Represents the value provider to be used for values from the HTTP file collection.
HttpFileCollectionValueProviderFactory Represents a class that is responsible for creating a new instance of the HTTP file collection value provider object.
HttpGetAttribute Represents a feature that is used to restrict operation methods so that the method only handles HTTP GET requests.
HttpHeadAttribute Specifies that the HTTP request must be of HTTP HEAD method.
HttpNotFoundResult Defines an object used to indicate that the requested resource was not found.
HttpOptionsAttribute Represents a feature that is used to restrict operation methods so that the method only handles HTTP OPTIONS requests.
HttpPatchAttribute Represents a feature that is used to restrict operation methods so that the method only handles HTTP PATCH requests.
HttpPostAttribute Represents an attribute used to restrict an action method so that it only handles HTTP POST requests.
HttpPostedFileBaseModelBinder Bind the model to a published file.
HttpPutAttribute Represents an attribute used to restrict an action method so that it only handles HTTP PUT requests.
HttpRequestExtensions Extend the HttpRequestBase class, which contains HTTP values sent by the client in a Web request.
HttpStatusCodeResult Provide a method for returning an operation result with a specific HTTP response status code and description.
HttpUnauthorizedResult Represents the result of an unauthorized HTTP request.
JavaScriptResult Send JavaScript content to the response.
JsonResult Represents a class used to send JSON-formatted content to the response.
JsonValueProviderFactory Enable action methods to send and receive JSON-formatted text and pass JSON text to the parameters of action methods in model-binding manner.
LinqBinaryModelBinder Map browser requests to LINQ Binary objects.
ModelBinderAttribute Represents an attribute used to associate a model type with a model-generator type.
ModelBinderDictionary Represents a class that contains all model binders in the application (listed by binder type).
ModelBinderProviderCollection Provide a container for the model binder provider.
ModelBinderProviders Provide a container for the model binder provider.
ModelBinders Provide global access to the application's model binder.
ModelBindingContext Provide the context for running the model binder.
ModelError Represents errors that occur during model binding.
ModelErrorCollection A collection of ModelError instances.
ModelMetadata Provide a container for the public metadata of data models, the ModelMetadataProvider class, and the ModelValidator class.
ModelMetadataProvider Provide an abstract base class for custom metadata providers.
ModelMetadataProviders Provide a container for the current ModelMetadataProvider instance.
ModelState Encapsulate the model binding state into a property of an action method parameter or the action method parameter itself.
ModelStateDictionary Represents the status of the attempt to bind the submitted form to an action method (including validation information).
ModelValidationResult Provide a container for validation results.
ModelValidator Provide a base class for implementing validation logic.
ModelValidatorProvider Provide a list of validation providers for the model.
ModelValidatorProviderCollection Provide a container for a list of validation providers.
ModelValidatorProviders Provide a container for the current validation provider.
MultiSelectList Represents a list of items from which the user can select multiple items.
MvcFilter When implemented in a derived class, provides a metadata class that contains references to the implementations of one or more filter interfaces, filter order, and filter scope.
MvcHandler Select the controller that will handle the HTTP request.
MvcHtmlString Represents an HTML-encoded string that should not be encoded again.
MvcHttpHandler Validate and handle HTTP requests.
MvcRouteHandler Create an object that implements the IHttpHandler interface and pass the request context to the object.
MvcWebRazorHostFactory Create an instance of the MvcWebPageRazorHost file.
NameValueCollectionExtensions Extends the NameValueCollection object to enable copying the collection to a specified dictionary.
NameValueCollectionValueProvider Represents the base class for value providers, whose values come from the NameValueCollection object.
NoAsyncTimeoutAttribute Provide convenient packaging for the AsyncTimeoutAttribute feature.
NonActionAttribute Represents an attribute used to indicate that a controller method is not an action method.
OutputCacheAttribute Represents an attribute used to mark an operation method that caches its output.
ParameterBindingInfo Encapsulates information related to binding operation method parameters to the data model.
ParameterDescriptor Contains information about the parameters.
PartialViewResult Represents a base class used to send a partial view to the response.
PreApplicationStartCode Provides a registration point for the pre-launch code of the ASP.NET Razor application.
QueryStringValueProvider Represents the value provider for the query string contained in the NameValueCollection object.
QueryStringValueProviderFactory Represents a class that is responsible for creating new instances of the query string value provider object.
RangeAttributeAdapter An adapter that provides the RangeAttribute feature.
RazorView Represents a class used to create views with Razor syntax.
RazorViewEngine Represents a view engine used to render web pages using ASP.NET Razor syntax.
RedirectResult Controls the handling of application operations by redirecting to a specified URI.
RedirectToRouteResult Represents the result of redirecting using a specified route value dictionary.
ReflectedActionDescriptor Contains information about the operation method of reflection.
ReflectedControllerDescriptor Contains information about the controller of reflection.
ReflectedParameterDescriptor Contains information about the operation method parameters of reflection operations.
RegularExpressionAttributeAdapter An adapter that provides the RegularExpressionAttribute feature.
RemoteAttribute An adapter that provides the feature of remote validation for the jQuery validation plugin.
RequiredAttributeAdapter An adapter that provides the RequiredAttributeAttribute feature.
RequireHttpsAttribute Represents a feature used to force the resending of insecure HTTP requests via HTTPS.
ResultExecutedContext Provides the context for the OnResultExecuted method of the ActionFilterAttribute class.
ResultExecutingContext Provides the context for the OnResultExecuting method of the ActionFilterAttribute class.
RouteCollectionExtensions Extends the RouteCollection object for MVC routing.
RouteDataValueProvider Represents a value provider that contains routing data in an object that implements the IDictionary<TKey, TValue> interface.
RouteDataValueProviderFactory Represents a factory used to create route data value provider objects.
SelectList Represents a list from which a user can select an item.
SelectListItem Represents the selected item in an instance of the SelectList class.
SessionStateAttribute Specifies the session state for the controller.
SessionStateTempDataProvider Provides session state data for the current TempDataDictionary object.
StringLengthAttributeAdapter Provides an adapter for the StringLengthAttribute feature.
TempDataDictionary Represents a dataset that is kept from one request to the next.
TemplateInfo Encapsulates information about the current template context.
UrlHelper Contains methods used to generate URLs for the ASP.NET MVC application.
UrlParameter Represents an optional parameter used by the MvcHandler class during the routing process.
ValidatableObjectAdapter Provides an adapter for validatable objects.
ValidateAntiForgeryTokenAttribute Represents a feature used to prevent forged requests.
ValidateInputAttribute Represents a feature used to mark operation methods that must validate their input.
ValueProviderCollection Represents a collection of value providers for the application.
ValueProviderDictionary Obsolete. Represents a dictionary of value providers for the application.
ValueProviderFactories Represents a container for value provider factory objects.
ValueProviderFactory Represents a factory used to create value provider objects.
ValueProviderFactoryCollection Represents a collection of value provider factories for the application.
ValueProviderResult Represents the result of binding a value (such as a value in a form submission or query string) to a parameter property of an action method or binding to the parameter itself.
ViewContext Encapsulates information related to the presentation of a view.
ViewDataDictionary Represents a container used to pass data between controllers and views.
ViewDataDictionary<TModel> Represents a container used to pass strongly-typed data between controllers and views.
ViewDataInfo Encapsulates information related to the current template content used for developing templates and the HTML helper with which the template interacts.
ViewEngineCollection Represents a collection of view engines available to the application.
ViewEngineResult Represents the result of locating a view engine.
ViewEngines Represents a collection of view engines available to the application.
ViewMasterPage Represents the information required to generate a master view page.
ViewMasterPage<TModel> Represents the information required to generate a strongly-typed master view page.
ViewPage Represents the properties and methods required to present a view as a Web form page.
ViewPage<TModel> Represents the information required to present a strongly-typed view in the form of a Web form page.
ViewResult Represents a class that is used to present a view by using an IView instance returned by the IViewEngine object.
ViewResultBase Represents a base class that provides a model for the view and presents the view in response.
ViewStartPage Abstract class that provides a class that can be used to implement the view startup (master) page.
ViewTemplateUserControl Container that provides the TemplateInfo object.
ViewTemplateUserControl<TModel> Container that provides the TemplateInfo object.
ViewType Represents the type of the view.
ViewUserControl Represents the information required to generate a user control.
ViewUserControl<TModel> Represents the information required to generate strongly-typed user controls.
VirtualPathProviderViewEngine Represents the abstract base class implementation of the IViewEngine interface.
WebFormView Represents the information required to generate web form pages in ASP.NET MVC.
WebFormViewEngine Represents a view engine used to render web form pages in response.
WebViewPage Represents the properties and methods required to render views using the ASP.NET Razor syntax.
WebViewPage<TModel> Represents the properties and methods required to render views using the ASP.NET Razor syntax.

Interface

Interface Description
IActionFilter Define the methods used in operation filters.
IActionInvoker Define the contract for the operation invoker, which is used to invoke an operation in response to an HTTP request.
IAuthorizationFilter Define the methods required for authorization filters.
IClientValidatable Provide a method for the ASP.NET MVC validation framework to discover at runtime whether the validator supports client validation.
IController Define the methods required for controllers.
IControllerActivator Fine-grained control over the way controllers are instantiated using dependency injection.
IControllerFactory Define the methods required for controller factories.
IDependencyResolver Define methods to simplify service location and dependency resolution.
IEnumerableValueProvider Represents a special IValueProvider that has the ability to be enumerable.
IExceptionFilter Define the methods required for exception filters.
IFilterProvider Provide the interface for finding filters.
IMetadataAware Provide the interface for exposing attributes to the AssociatedMetadataProvider class.
IModelBinder Define the methods required for model binders.
IModelBinderProvider Define the methods used to dynamically implement model binding for classes that implement the IModelBinder interface.
IMvcFilter Define the members used to specify the filter order and whether multiple filters are allowed.
IResultFilter Define the methods required for defining result filters.
IRouteWithArea Associate routing with areas in ASP.NET MVC applications.
ITempDataProvider Defines the contract for temporary data providers, which are used to store data to be viewed in the next request.
IUnvalidatedValueProvider Represents an interface for an IValueProvider that can skip request validation.
IValueProvider Defines methods required to define value providers in ASP.NET MVC.
IView Defines methods required to define the view.
IViewDataContainer Defines methods required to define the view data dictionary.
IViewEngine Defines methods required by the view engine.
IViewLocationCache Defines methods required to cache view locations in memory.
IViewPageActivator Performs fine-grained control over the way view pages are created using dependency injection.

Delegate

Delegate Description
ActionSelector Represents a delegate that contains the logic for selecting the operation method.
DataAnnotationsModelValidationFactory Represents a method that creates an instance of DataAnnotationsModelValidatorProvider.
DataAnnotationsValidatableObjectAdapterFactory Provides a factory for validation programs based on IValidatableObject.

Enumeration

Enumeration Description
FilterScope Defines values that specify the execution order of ASP.NET MVC filters within the same filter type and filter order.
FormMethod Enumerates the HTTP request types of the form.
HttpVerbs Enumerates HTTP verbs.
InputType Enumerates the types of input controls.
JsonRequestBehavior Specify whether to allow HTTP GET requests from the client.