Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The System.Web.Mvc namespace contains classes and interfaces that support the ASP.NET Model View Controller (MVC) framework for creating Web applications. This namespace includes classes that represent controllers, controller factories, action results, views, partial view, model binders, and much more.
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 all action-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. |
![]() |
AjaxHelper | Represents support for rendering HTML in AJAX scenarios within a view. |
![]() |
AjaxHelper<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. |
![]() |
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. |
![]() |
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. |
![]() |
ClientDataTypeModelValidatorProvider | Returns the client data-type model validators. |
![]() |
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. |
![]() |
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<TAttribute> | Provides a model validator for a specified validation type. |
![]() |
DataAnnotationsModelValidatorProvider | Implements the default validation provider for 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. |
![]() |
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 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. |
![]() |
FilterAttribute | Represents the base class for action-filter attributes. |
![]() |
FilterInfo | Encapsulates information about the available action 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. |
![]() |
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<TModel> | Represents support for rendering HTML controls in a strongly typed view. |
![]() |
HttpAntiForgeryException | Represents an HTTP anti-forgery exception. |
![]() |
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. |
![]() |
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. |
![]() |
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. |
![]() |
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. |
![]() |
ModelBinders | Provides global access to the model binders for the application. |
![]() |
ModelBindingContext | Provides the context in which a model binder functions. |
![]() |
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. |
![]() |
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. |
![]() |
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 gives it the request context. |
![]() |
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. |
![]() |
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. |
![]() |
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. |
![]() |
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<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. |
![]() |
SessionStateTempDataProvider | Provides session-state data to the current TempDataDictionary object. |
![]() |
StringLengthAttributeAdapter | Provides an adapter for the StringLengthAttribute attribute. |
![]() |
TagBuilder | Represents a class that is used by HTML helpers to build HTML elements. |
![]() |
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. |
![]() |
ValidateAntiForgeryTokenAttribute | Represents an attribute that is used to detect whether a server request has been tampered with. |
![]() |
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<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<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<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. |
![]() |
ViewTemplateUserControl | Provides a container for TemplateInfo objects. |
![]() |
ViewTemplateUserControl<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<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 MVC. |
![]() |
WebFormViewEngine | Represents a view engine that is used to render a Web Forms page to the response. |
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. |
![]() |
IController | Defines the methods that are required for a controller. |
![]() |
IControllerFactory | Defines the methods that are required for a controller factory. |
![]() |
IExceptionFilter | Defines the methods that are required for an exception filter. |
![]() |
IModelBinder | Defines the methods that are required for a model binder. |
![]() |
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. |
![]() |
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. |
Delegates
Delegate | Description | |
---|---|---|
![]() |
ActionSelector | Represents a delegate that contains the logic for selecting an action method. |
![]() |
DataAnnotationsModelValidationFactory | Represents the method that creates a DataAnnotationsModelValidatorProvider instance. |
Enumerations
Enumeration | Description | |
---|---|---|
![]() |
FormMethod | Enumerates the HTTP request types for a form. |
![]() |
HttpVerbs | Enumerates the HTTP verbs. |
![]() |
InputType | Enumerates the types of input controls. |
![]() |
JsonRequestBehavior | Specifies whether HTTP GET requests from the client are allowed. |
![]() |
TagRenderMode | Enumerates the modes that are available for rendering HTML tags. |