Latest web development tutorials
 

ASP.NET MVC - Reference


Classes

Class Description
AcceptVerbsAttribute Represents an attribute that specifies which HTTP verbs an action method will respond to.
ActionDescriptor Provides information about an action method, such as its name, controller, parameters, attributes, and filters.
ActionExecutedContext Provides the context for the ActionExecuted method of the ActionFilterAttribute class.
ActionExecutingContext Provides the context for the ActionExecuting method of the ActionFilterAttribute class.
ActionFilterAttribute Represents the base class for filter attributes.
ActionMethodSelectorAttribute Represents an attribute that is used to influence the selection of an action method.
ActionNameAttribute Represents an attribute that is used for the name of an action.
ActionNameSelectorAttribute Represents an attribute that affects the selection of an action method.
ActionResult Encapsulates the result of an action method and is used to perform a framework-level operation on behalf of the action method.
AdditionalMetadataAttribute Provides a class that implements the IMetadataAware interface in order to support additional metadata.
AjaxHelper Represents support for rendering HTML in AJAX scenarios within a view.
AjaxHelper(Of TModel) Represents support for rendering HTML in AJAX scenarios within a strongly typed view.
AjaxRequestExtensions Represents a class that extends the HttpRequestBase class by adding the ability to determine whether an HTTP request is an AJAX request.
AllowHtmlAttribute Allows a request to include HTML markup during model binding by skipping request validation for the property. (It is strongly recommended that your application explicitly check all models where you disable request validation in order to prevent script exploits.)
AreaRegistration Provides a way to register one or more areas in an ASP.NET MVC application.
AreaRegistrationContext Encapsulates the information that is required in order to register an area within an ASP.NET MVC application.
AssociatedMetadataProvider Provides an abstract class to implement a metadata provider.
AssociatedValidatorProvider Provides an abstract class for classes that implement a validation provider.
AsyncController Provides the base class for asynchronous controllers.
AsyncTimeoutAttribute Represents an attribute that is used to set the timeout value, in milliseconds, for an asynchronous method.
AuthorizationContext Encapsulates the information that is required for using an AuthorizeAttribute attribute.
AuthorizeAttribute Represents an attribute that is used to restrict access by callers to an action method.
BindAttribute Represents an attribute that is used to provide details about how model binding to a parameter should occur.
BuildManagerCompiledView Represents the base class for views that are compiled by the BuildManager class before being rendered by a view engine.
BuildManagerViewEngine Provides a base class for view engines.
ByteArrayModelBinder Maps a browser request to a byte array.
ChildActionOnlyAttribute Represents an attribute that is used to indicate that an action method should be called only as a child action.
ChildActionValueProvider Represents a value provider for values from child actions.
ChildActionValueProviderFactory Represents a factory for creating value provider objects for child actions.
ClientDataTypeModelValidatorProvider Returns the client data-type model validators.
CompareAttribute Provides an attribute that compares two properties of a model.
ContentResult Represents a user-defined content type that is the result of an action method.
Controller Provides methods that respond to HTTP requests that are made to an ASP.NET MVC Web site.
ControllerActionInvoker Represents a class that is responsible for invoking the action methods of a controller.
ControllerBase Represents the base class for all MVC controllers.
ControllerBuilder Represents a class that is responsible for dynamically building a controller.
ControllerContext Encapsulates information about an HTTP request that matches specified RouteBase and ControllerBase instances.
ControllerDescriptor Encapsulates information that describes a controller, such as its name, type, and actions.
ControllerInstanceFilterProvider Adds the controller to the FilterProviderCollection instance.
CustomModelBinderAttribute Represents an attribute that invokes a custom model binder.
DataAnnotationsModelMetadata Provides a container for common metadata, for the DataAnnotationsModelMetadataProvider class, and for the DataAnnotationsModelValidator class for a data model.
DataAnnotationsModelMetadataProvider Implements the default model metadata provider for ASP.NET MVC.
DataAnnotationsModelValidator Provides a model validator.
DataAnnotationsModelValidator(Of TAttribute) Provides a model validator for a specified validation type.
DataAnnotationsModelValidatorProvider Implements the default validation provider for ASP.NET MVC.
DataErrorInfoModelValidatorProvider Provides a container for the error-information model validator.
DefaultControllerFactory Represents the controller factory that is registered by default.
DefaultModelBinder Maps a browser request to a data object. This class provides a concrete implementation of a model binder.
DefaultViewLocationCache Represents a memory cache for view locations.
DependencyResolver Provides a registration point for dependency resolvers that implement IDependencyResolver or the Common Service Locator IServiceLocator interface.
DependencyResolverExtensions Provides a type-safe implementation of GetService and GetServices.
DictionaryValueProvider(Of TValue) Represents the base class for value providers whose values come from a collection that implements the IDictionary(Of 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 a validator.
EmptyResult Represents a result that does nothing, such as a controller action method that returns nothing.
ExceptionContext Provides the context for using the HandleErrorAttribute class.
ExpressionHelper Provides a helper class to get the model name from an expression.
FieldValidationMetadata Provides a container for client-side field validation metadata.
FileContentResult Sends the contents of a binary file to the response.
FilePathResult Sends the contents of a file to the response.
FileResult Represents a base class that is used to send binary file content to the response.
FileStreamResult Sends binary content to the response by using a Stream instance.
Filter Represents a metadata class that contains a reference to the implementation of one or more of the filter interfaces, the filter's order, and the filter's scope.
FilterAttribute Represents the base class for action and result filter attributes.
FilterAttributeFilterProvider Defines a filter provider for filter attributes.
FilterInfo Encapsulates information about the available action filters.
FilterProviderCollection Represents the collection of filter providers for the application.
FilterProviders Provides a registration point for filters.
FormCollection Contains the form value providers for the application.
FormContext Encapsulates information that is required in order to validate and process the input data from an HTML form.
FormValueProvider Represents a value provider for form values that are contained in a NameValueCollection object.
FormValueProviderFactory Represents a class that is responsible for creating a new instance of a form-value provider object.
GlobalFilterCollection Represents a class that contains all the global filters.
GlobalFilters Represents the global filter collection.
HandleErrorAttribute Represents an attribute that is used to handle an exception that is thrown by an action method.
HandleErrorInfo Encapsulates information for handling an error that was thrown by an action method.
HiddenInputAttribute Represents an attribute that is used to indicate whether a property or field value should be rendered as a hidden input element.
HtmlHelper Represents support for rendering HTML controls in a view.
HtmlHelper(Of TModel) Represents support for rendering HTML controls in a strongly typed view.
HttpDeleteAttribute Represents an attribute that is used to restrict an action method so that the method handles only HTTP DELETE requests.
HttpFileCollectionValueProvider Represents a value provider to use with values that come from a collection of HTTP files.
HttpFileCollectionValueProviderFactory Represents a class that is responsible for creating a new instance of an HTTP file collection value provider object.
HttpGetAttribute Represents an attribute that is used to restrict an action method so that the method handles only HTTP GET requests.
HttpNotFoundResult Defines an object that is used to indicate that the requested resource was not found.
HttpPostAttribute Represents an attribute that is used to restrict an action method so that the method handles only HTTP POST requests.
HttpPostedFileBaseModelBinder Binds a model to a posted file.
HttpPutAttribute Represents an attribute that is used to restrict an action method so that the method handles only HTTP PUT requests.
HttpRequestExtensions Extends the HttpRequestBase class that contains the HTTP values that were sent by a client during a Web request.
HttpStatusCodeResult Provides a way to return an action result with a specific HTTP response status code and description.
HttpUnauthorizedResult Represents the result of an unauthorized HTTP request.
JavaScriptResult Sends JavaScript content to the response.
JsonResult Represents a class that is used to send JSON-formatted content to the response.
JsonValueProviderFactory Enables action methods to send and receive JSON-formatted text and to model-bind the JSON text to parameters of action methods.
LinqBinaryModelBinder Maps a browser request to a LINQ Binary object.
ModelBinderAttribute Represents an attribute that is used to associate a model type to a model-builder type.
ModelBinderDictionary Represents a class that contains all model binders for the application, listed by binder type.
ModelBinderProviderCollection Provides a container for model binder providers.
ModelBinderProviders Provides a container for model binder providers.
ModelBinders Provides global access to the model binders for the application.
ModelBindingContext Provides the context in which a model binder functions.
ModelClientValidationEqualToRule Provides a container for an equality validation rule that is sent to the browser.
ModelClientValidationRangeRule Provides a container for a range-validation rule that is sent to the browser.
ModelClientValidationRegexRule Provides a container for a regular-expression client validation rule that is sent to the browser.
ModelClientValidationRemoteRule Provides a container for a remote validation rule that is sent to the browser.
ModelClientValidationRequiredRule Provides a container for client validation for required field.
ModelClientValidationRule Provides a base class container for a client validation rule that is sent to the browser.
ModelClientValidationStringLengthRule Provides a container for a string-length validation rule that is sent to the browser.
ModelError Represents an error that occurs during model binding.
ModelErrorCollection A collection of ModelError instances.
ModelMetadata Provides a container for common metadata, for the ModelMetadataProvider class, and for the ModelValidator class for a data model.
ModelMetadataProvider Provides an abstract base class for a custom metadata provider.
ModelMetadataProviders Provides a container for the current ModelMetadataProvider instance.
ModelState Encapsulates the state of model binding to a property of an action-method argument, or to the argument itself.
ModelStateDictionary Represents the state of an attempt to bind a posted form to an action method, which includes validation information.
ModelValidationResult Provides a container for a validation result.
ModelValidator Provides a base class for implementing validation logic.
ModelValidatorProvider Provides a list of validators for a model.
ModelValidatorProviderCollection Provides a container for a list of validation providers.
ModelValidatorProviders Provides a container for the current validation provider.
MultiSelectList Represents a list of items that users can select more than one item from.
MvcFilter When implemented in a derived class, provides a metadata class that contains a reference to the implementation of one or more of the filter interfaces, the filter's order, and the filter's scope.
MvcHandler Selects the controller that will handle an HTTP request.
MvcHtmlString Represents an HTML-encoded string that should not be encoded again.
MvcHttpHandler Verifies and processes an HTTP request.
MvcRouteHandler Creates an object that implements the IHttpHandler interface and passes the request context to it.
MvcWebRazorHostFactory Creates instances of MvcWebPageRazorHost files.
NameValueCollectionExtensions Extends a NameValueCollection object so that the collection can be copied to a specified dictionary.
NameValueCollectionValueProvider Represents the base class for value providers whose values come from a NameValueCollection object.
NoAsyncTimeoutAttribute Provides a convenience wrapper for the AsyncTimeoutAttribute attribute.
NonActionAttribute Represents an attribute that is used to indicate that a controller method is not an action method.
OutputCacheAttribute Represents an attribute that is used to mark an action method whose output will be cached.
ParameterBindingInfo Encapsulates information for binding action-method parameters to a data model.
ParameterDescriptor Contains information that describes a parameter.
PartialViewResult Represents a base class that is used to send a partial view to the response.
PreApplicationStartCode Provides a registration point for ASP.NET Razor pre-application start code.
QueryStringValueProvider Represents a value provider for query strings that are contained in a NameValueCollection object.
QueryStringValueProviderFactory Represents a class that is responsible for creating a new instance of a query-string value-provider object.
RangeAttributeAdapter Provides an adapter for the RangeAttribute attribute.
RazorView Represents the class used to create views that have Razor syntax.
RazorViewEngine Represents a view engine that is used to render a Web page that uses the ASP.NET Razor syntax.
RedirectResult Controls the processing of application actions by redirecting to a specified URI.
RedirectToRouteResult Represents a result that performs a redirection by using the specified route values dictionary.
ReflectedActionDescriptor Contains information that describes a reflected action method.
ReflectedControllerDescriptor Contains information that describes a reflected controller.
ReflectedParameterDescriptor Contains information that describes a reflected action-method parameter.
RegularExpressionAttributeAdapter Provides an adapter for the RegularExpressionAttribute attribute.
RemoteAttribute Provides an attribute that uses the jQuery validation plug-in remote validator.
RequiredAttributeAdapter Provides an adapter for the RequiredAttributeAttribute attribute.
RequireHttpsAttribute Represents an attribute that forces an unsecured HTTP request to be re-sent over 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 a RouteCollection object for MVC routing.
RouteDataValueProvider Represents a value provider for route data that is contained in an object that implements the IDictionary(Of TKey, TValue) interface.
RouteDataValueProviderFactory Represents a factory for creating route-data value provider objects.
SelectList Represents a list that lets users select one item.
SelectListItem Represents the selected item in an instance of the SelectList class.
SessionStateAttribute Specifies the session state of the controller.
SessionStateTempDataProvider Provides session-state data to the current TempDataDictionary object.
StringLengthAttributeAdapter Provides an adapter for the StringLengthAttribute attribute.
TempDataDictionary Represents a set of data that persists only from one request to the next.
TemplateInfo Encapsulates information about the current template context.
UrlHelper Contains methods to build URLs for ASP.NET MVC within an application.
UrlParameter Represents an optional parameter that is used by the MvcHandler class during routing.
ValidatableObjectAdapter Provides an object adapter that can be validated.
ValidateAntiForgeryTokenAttribute Represents an attribute that is used to prevent forgery of a request.
ValidateInputAttribute Represents an attribute that is used to mark action methods whose input must be validated.
ValueProviderCollection Represents the collection of value-provider objects 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 for creating value-provider objects.
ValueProviderFactoryCollection Represents the collection of value-provider factories for the application.
ValueProviderResult Represents the result of binding a value (such as from a form post or query string) to an action-method argument property, or to the argument itself.
ViewContext Encapsulates information that is related to rendering a view.
ViewDataDictionary Represents a container that is used to pass data between a controller and a view.
ViewDataDictionary(Of TModel) Represents a container that is used to pass strongly typed data between a controller and a view.
ViewDataInfo Encapsulates information about the current template content that is used to develop templates and about HTML helpers that interact with templates.
ViewEngineCollection Represents a collection of view engines that are available to the application.
ViewEngineResult Represents the result of locating a view engine.
ViewEngines Represents a collection of view engines that are available to the application.
ViewMasterPage Represents the information that is needed to build a master view page.
ViewMasterPage(Of TModel) Represents the information that is required in order to build a strongly typed master view page.
ViewPage Represents the properties and methods that are needed to render a view as a Web Forms page.
ViewPage(Of TModel) Represents the information that is required in order to render a strongly typed view as a Web Forms page.
ViewResult Represents a class that is used to render a view by using an IView instance that is returned by an IViewEngine object.
ViewResultBase Represents a base class that is used to provide the model to the view and then render the view to the response.
ViewStartPage Provides an abstract class that can be used to implement a view start (master) page.
ViewTemplateUserControl Provides a container for TemplateInfo objects.
ViewTemplateUserControl(Of TModel) Provides a container for TemplateInfo objects.
ViewType Represents the type of a view.
ViewUserControl Represents the information that is needed to build a user control.
ViewUserControl(Of TModel) Represents the information that is required in order to build a strongly typed user control.
VirtualPathProviderViewEngine Represents an abstract base-class implementation of the IViewEngine interface.
WebFormView Represents the information that is needed to build a Web Forms page in ASP.NET MVC.
WebFormViewEngine Represents a view engine that is used to render a Web Forms page to the response.
WebViewPage Represents the properties and methods that are needed in order to render a view that uses ASP.NET Razor syntax.
WebViewPage(Of TModel) Represents the properties and methods that are needed in order to render a view that uses ASP.NET Razor syntax.

 

Interfaces

Interface Description
IActionFilter Defines the methods that are used in an action filter.
IActionInvoker Defines the contract for an action invoker, which is used to invoke an action in response to an HTTP request.
IAuthorizationFilter Defines the methods that are required for an authorization filter.
IClientValidatable Provides a way for the ASP.NET MVC validation framework to discover at run time whether a validator has support for client validation.
IController Defines the methods that are required for a controller.
IControllerActivator Provides fine-grained control over how controllers are instantiated using dependency injection.
IControllerFactory Defines the methods that are required for a controller factory.
IDependencyResolver Defines the methods that simplify service location and dependency resolution.
IExceptionFilter Defines the methods that are required for an exception filter.
IFilterProvider Provides an interface for finding filters.
IMetadataAware Provides an interface for exposing attributes to the AssociatedMetadataProvider class.
IModelBinder Defines the methods that are required for a model binder.
IModelBinderProvider Defines methods that enable dynamic implementations of model binding for classes that implement the IModelBinder interface.
IMvcFilter Defines members that specify the order of filters and whether multiple filters are allowed.
IResultFilter Defines the methods that are required for a result filter.
IRouteWithArea Associates a route with an area in an ASP.NET MVC application.
ITempDataProvider Defines the contract for temporary-data providers that store data that is viewed on the next request.
IUnvalidatedValueProvider Represents an IValueProvider interface that can skip request validation.
IValueProvider Defines the methods that are required for a value provider in ASP.NET MVC.
IView Defines the methods that are required for a view.
IViewDataContainer Defines the methods that are required for a view data dictionary.
IViewEngine Defines the methods that are required for a view engine.
IViewLocationCache Defines the methods that are required in order to cache view locations in memory.
IViewPageActivator Provides fine-grained control