Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.Web.Mvc Namespace

.NET Framework 4

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.

  ClassDescription
Public classAcceptVerbsAttributeRepresents an attribute that specifies which HTTP verbs an action method will respond to.
Public classActionDescriptorProvides information about an action method, such as its name, controller, parameters, attributes, and filters.
Public classActionExecutedContextProvides the context for the ActionExecuted method of the ActionFilterAttribute class.
Public classActionExecutingContextProvides the context for the ActionExecuting method of the ActionFilterAttribute class.
Public classActionFilterAttributeRepresents the base class for all action-filter attributes.
Public classActionMethodSelectorAttributeRepresents an attribute that is used to influence the selection of an action method.
Public classActionNameAttributeRepresents an attribute that is used for the name of an action.
Public classActionNameSelectorAttributeRepresents an attribute that affects the selection of an action method.
Public classActionResultEncapsulates the result of an action method and is used to perform a framework-level operation on behalf of the action method.
Public classAjaxHelperRepresents support for rendering HTML in AJAX scenarios within a view.
Public classAjaxHelper<TModel>Represents support for rendering HTML in AJAX scenarios within a strongly typed view.
Public classAjaxRequestExtensionsRepresents a class that extends the HttpRequestBase class by adding the ability to determine whether an HTTP request is an AJAX request.
Public classAreaRegistrationProvides a way to register one or more areas in an ASP.NET MVC application.
Public classAreaRegistrationContextEncapsulates the information that is required in order to register an area within an ASP.NET MVC application.
Public classAssociatedMetadataProviderProvides an abstract class to implement a metadata provider.
Public classAssociatedValidatorProviderProvides an abstract class for classes that implement a validation provider.
Public classAsyncControllerProvides the base class for asynchronous controllers.
Public classAsyncTimeoutAttributeRepresents an attribute that is used to set the timeout value, in milliseconds, for an asynchronous method.
Public classAuthorizationContextEncapsulates the information that is required for using an AuthorizeAttribute attribute.
Public classAuthorizeAttributeRepresents an attribute that is used to restrict access by callers to an action method.
Public classBindAttributeRepresents an attribute that is used to provide details about how model binding to a parameter should occur.
Public classByteArrayModelBinderMaps a browser request to a byte array.
Public classChildActionOnlyAttributeRepresents an attribute that is used to indicate that an action method should be called only as a child action.
Public classClientDataTypeModelValidatorProviderReturns the client data-type model validators.
Public classContentResultRepresents a user-defined content type that is the result of an action method.
Public classControllerProvides methods that respond to HTTP requests that are made to an ASP.NET MVC Web site.
Public classControllerActionInvokerRepresents a class that is responsible for invoking the action methods of a controller.
Public classControllerBaseRepresents the base class for all MVC controllers.
Public classControllerBuilderRepresents a class that is responsible for dynamically building a controller.
Public classControllerContextEncapsulates information about an HTTP request that matches specified RouteBase and ControllerBase instances.
Public classControllerDescriptorEncapsulates information that describes a controller, such as its name, type, and actions.
Public classCustomModelBinderAttributeRepresents an attribute that invokes a custom model binder.
Public classDataAnnotationsModelMetadataProvides a container for common metadata, for the DataAnnotationsModelMetadataProvider class, and for the DataAnnotationsModelValidator class for a data model.
Public classDataAnnotationsModelMetadataProviderImplements the default model metadata provider for ASP.NET MVC.
Public classDataAnnotationsModelValidatorProvides a model validator.
Public classDataAnnotationsModelValidator<TAttribute>Provides a model validator for a specified validation type.
Public classDataAnnotationsModelValidatorProviderImplements the default validation provider for MVC.
Public classDataErrorInfoModelValidatorProviderProvides a container for the error-information model validator.
Public classDefaultControllerFactoryRepresents the controller factory that is registered by default.
Public classDefaultModelBinderMaps a browser request to a data object. This class provides a concrete implementation of a model binder.
Public classDefaultViewLocationCacheRepresents a memory cache for view locations.
Public classDictionaryValueProvider<TValue>Represents the base class for value providers whose values come from a collection that implements the IDictionary<TKey, TValue> interface.
Public classEmptyModelMetadataProviderProvides an empty metadata provider for data models that do not require metadata.
Public classEmptyModelValidatorProviderProvides an empty validation provider for models that do not require a validator.
Public classEmptyResultRepresents a result that does nothing, such as a controller action method that returns nothing.
Public classExceptionContextProvides the context for using the HandleErrorAttribute class.
Public classExpressionHelperProvides a helper class to get the model name from an expression.
Public classFieldValidationMetadataProvides a container for client-side field validation metadata.
Public classFileContentResultSends the contents of a binary file to the response.
Public classFilePathResultSends the contents of a file to the response.
Public classFileResultRepresents a base class that is used to send binary file content to the response.
Public classFileStreamResultSends binary content to the response by using a Stream instance.
Public classFilterAttributeRepresents the base class for action-filter attributes.
Public classFilterInfoEncapsulates information about the available action filters.
Public classFormCollectionContains the form value providers for the application.
Public classFormContextEncapsulates information that is required in order to validate and process the input data from an HTML form.
Public classFormValueProviderRepresents a value provider for form values that are contained in a NameValueCollection object.
Public classFormValueProviderFactoryRepresents a class that is responsible for creating a new instance of a form-value provider object.
Public classHandleErrorAttributeRepresents an attribute that is used to handle an exception that is thrown by an action method.
Public classHandleErrorInfoEncapsulates information for handling an error that was thrown by an action method.
Public classHiddenInputAttributeRepresents an attribute that is used to indicate whether a property or field value should be rendered as a hidden input element.
Public classHtmlHelperRepresents support for rendering HTML controls in a view.
Public classHtmlHelper<TModel>Represents support for rendering HTML controls in a strongly typed view.
Public classHttpAntiForgeryExceptionRepresents an HTTP anti-forgery exception.
Public classHttpDeleteAttributeRepresents an attribute that is used to restrict an action method so that the method handles only HTTP DELETE requests.
Public classHttpFileCollectionValueProviderRepresents a value provider to use with values that come from a collection of HTTP files.
Public classHttpFileCollectionValueProviderFactoryRepresents a class that is responsible for creating a new instance of an HTTP file collection value provider object.
Public classHttpGetAttributeRepresents an attribute that is used to restrict an action method so that the method handles only HTTP GET requests.
Public classHttpPostAttributeRepresents an attribute that is used to restrict an action method so that the method handles only HTTP POST requests.
Public classHttpPostedFileBaseModelBinderBinds a model to a posted file.
Public classHttpPutAttributeRepresents an attribute that is used to restrict an action method so that the method handles only HTTP PUT requests.
Public classHttpRequestExtensionsExtends the HttpRequestBase class that contains the HTTP values that were sent by a client during a Web request.
Public classHttpUnauthorizedResultRepresents the result of an unauthorized HTTP request.
Public classJavaScriptResultSends JavaScript content to the response.
Public classJsonResultRepresents a class that is used to send JSON-formatted content to the response.
Public classLinqBinaryModelBinderMaps a browser request to a LINQ Binary object.
Public classModelBinderAttributeRepresents an attribute that is used to associate a model type to a model-builder type.
Public classModelBinderDictionaryRepresents a class that contains all model binders for the application, listed by binder type.
Public classModelBindersProvides global access to the model binders for the application.
Public classModelBindingContextProvides the context in which a model binder functions.
Public classModelClientValidationRangeRuleProvides a container for a range-validation rule that is sent to the browser.
Public classModelClientValidationRegexRuleProvides a container for a regular-expression client validation rule that is sent to the browser.
Public classModelClientValidationRequiredRuleProvides a container for client validation for required field.
Public classModelClientValidationRuleProvides a base class container for a client validation rule that is sent to the browser.
Public classModelClientValidationStringLengthRuleProvides a container for a string-length validation rule that is sent to the browser.
Public classModelErrorRepresents an error that occurs during model binding.
Public classModelErrorCollectionA collection of ModelError instances.
Public classModelMetadataProvides a container for common metadata, for the ModelMetadataProvider class, and for the ModelValidator class for a data model.
Public classModelMetadataProviderProvides an abstract base class for a custom metadata provider.
Public classModelMetadataProvidersProvides a container for the current ModelMetadataProvider instance.
Public classModelStateEncapsulates the state of model binding to a property of an action-method argument, or to the argument itself.
Public classModelStateDictionaryRepresents the state of an attempt to bind a posted form to an action method, which includes validation information.
Public classModelValidationResultProvides a container for a validation result.
Public classModelValidatorProvides a base class for implementing validation logic.
Public classModelValidatorProviderProvides a list of validators for a model.
Public classModelValidatorProviderCollectionProvides a container for a list of validation providers.
Public classModelValidatorProvidersProvides a container for the current validation provider.
Public classMultiSelectListRepresents a list of items that users can select more than one item from.
Public classMvcHandlerSelects the controller that will handle an HTTP request.
Public classMvcHtmlStringRepresents an HTML-encoded string that should not be encoded again.
Public classMvcHttpHandlerVerifies and processes an HTTP request.
Public classMvcRouteHandlerCreates an object that implements the IHttpHandler interface and gives it the request context.
Public classNameValueCollectionExtensionsExtends a NameValueCollection object so that the collection can be copied to a specified dictionary.
Public classNameValueCollectionValueProviderRepresents the base class for value providers whose values come from a NameValueCollection object.
Public classNoAsyncTimeoutAttributeProvides a convenience wrapper for the AsyncTimeoutAttribute attribute.
Public classNonActionAttributeRepresents an attribute that is used to indicate that a controller method is not an action method.
Public classOutputCacheAttributeRepresents an attribute that is used to mark an action method whose output will be cached.
Public classParameterBindingInfoEncapsulates information for binding action-method parameters to a data model.
Public classParameterDescriptorContains information that describes a parameter.
Public classPartialViewResultRepresents a base class that is used to send a partial view to the response.
Public classQueryStringValueProviderRepresents a value provider for query strings that are contained in a NameValueCollection object.
Public classQueryStringValueProviderFactoryRepresents a class that is responsible for creating a new instance of a query-string value-provider object.
Public classRangeAttributeAdapterProvides an adapter for the RangeAttribute attribute.
Public classRedirectResultControls the processing of application actions by redirecting to a specified URI.
Public classRedirectToRouteResultRepresents a result that performs a redirection by using the specified route values dictionary.
Public classReflectedActionDescriptorContains information that describes a reflected action method.
Public classReflectedControllerDescriptorContains information that describes a reflected controller.
Public classReflectedParameterDescriptorContains information that describes a reflected action-method parameter.
Public classRegularExpressionAttributeAdapterProvides an adapter for the RegularExpressionAttribute attribute.
Public classRequiredAttributeAdapterProvides an adapter for the RequiredAttributeAttribute attribute.
Public classRequireHttpsAttributeRepresents an attribute that forces an unsecured HTTP request to be re-sent over HTTPS.
Public classResultExecutedContextProvides the context for the OnResultExecuted method of the ActionFilterAttribute class.
Public classResultExecutingContextProvides the context for the OnResultExecuting method of the ActionFilterAttribute class.
Public classRouteCollectionExtensionsExtends a RouteCollection object for MVC routing.
Public classRouteDataValueProviderRepresents a value provider for route data that is contained in an object that implements the IDictionary<TKey, TValue> interface.
Public classRouteDataValueProviderFactoryRepresents a factory for creating route-data value provider objects.
Public classSelectListRepresents a list that lets users select one item.
Public classSelectListItemRepresents the selected item in an instance of the SelectList class.
Public classSessionStateTempDataProviderProvides session-state data to the current TempDataDictionary object.
Public classStringLengthAttributeAdapterProvides an adapter for the StringLengthAttribute attribute.
Public classTagBuilderRepresents a class that is used by HTML helpers to build HTML elements.
Public classTempDataDictionaryRepresents a set of data that persists only from one request to the next.
Public classTemplateInfoEncapsulates information about the current template context.
Public classUrlHelperContains methods to build URLs for ASP.NET MVC within an application.
Public classUrlParameterRepresents an optional parameter that is used by the MvcHandler class during routing.
Public classValidateAntiForgeryTokenAttributeRepresents an attribute that is used to detect whether a server request has been tampered with.
Public classValidateInputAttributeRepresents an attribute that is used to mark action methods whose input must be validated.
Public classValueProviderCollectionRepresents the collection of value-provider objects for the application.
Public classValueProviderDictionary Obsolete. Represents a dictionary of value providers for the application.
Public classValueProviderFactoriesRepresents a container for value-provider factory objects.
Public classValueProviderFactoryRepresents a factory for creating value-provider objects.
Public classValueProviderFactoryCollectionRepresents the collection of value-provider factories for the application.
Public classValueProviderResultRepresents 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.
Public classViewContextEncapsulates information that is related to rendering a view.
Public classViewDataDictionaryRepresents a container that is used to pass data between a controller and a view.
Public classViewDataDictionary<TModel>Represents a container that is used to pass strongly typed data between a controller and a view.
Public classViewDataInfoEncapsulates information about the current template content that is used to develop templates and about HTML helpers that interact with templates.
Public classViewEngineCollectionRepresents a collection of view engines that are available to the application.
Public classViewEngineResultRepresents the result of locating a view engine.
Public classViewEnginesRepresents a collection of view engines that are available to the application.
Public classViewMasterPageRepresents the information that is needed to build a master view page.
Public classViewMasterPage<TModel>Represents the information that is required in order to build a strongly typed master view page.
Public classViewPageRepresents the properties and methods that are needed to render a view as a Web Forms page.
Public classViewPage<TModel>Represents the information that is required in order to render a strongly typed view as a Web Forms page.
Public classViewResultRepresents a class that is used to render a view by using an IView instance that is returned by an IViewEngine object.
Public classViewResultBaseRepresents a base class that is used to provide the model to the view and then render the view to the response.
Public classViewTemplateUserControlProvides a container for TemplateInfo objects.
Public classViewTemplateUserControl<TModel>Provides a container for TemplateInfo objects.
Public classViewTypeRepresents the type of a view.
Public classViewUserControlRepresents the information that is needed to build a user control.
Public classViewUserControl<TModel>Represents the information that is required in order to build a strongly typed user control.
Public classVirtualPathProviderViewEngineRepresents an abstract base-class implementation of the IViewEngine interface.
Public classWebFormViewRepresents the information that is needed to build a Web Forms page in MVC.
Public classWebFormViewEngineRepresents a view engine that is used to render a Web Forms page to the response.

  InterfaceDescription
Public interfaceIActionFilterDefines the methods that are used in an action filter.
Public interfaceIActionInvokerDefines the contract for an action invoker, which is used to invoke an action in response to an HTTP request.
Public interfaceIAuthorizationFilterDefines the methods that are required for an authorization filter.
Public interfaceIControllerDefines the methods that are required for a controller.
Public interfaceIControllerFactoryDefines the methods that are required for a controller factory.
Public interfaceIExceptionFilterDefines the methods that are required for an exception filter.
Public interfaceIModelBinderDefines the methods that are required for a model binder.
Public interfaceIResultFilterDefines the methods that are required for a result filter.
Public interfaceIRouteWithAreaAssociates a route with an area in an ASP.NET MVC application.
Public interfaceITempDataProviderDefines the contract for temporary-data providers that store data that is viewed on the next request.
Public interfaceIValueProviderDefines the methods that are required for a value provider in ASP.NET MVC.
Public interfaceIViewDefines the methods that are required for a view.
Public interfaceIViewDataContainerDefines the methods that are required for a view data dictionary.
Public interfaceIViewEngineDefines the methods that are required for a view engine.
Public interfaceIViewLocationCacheDefines the methods that are required in order to cache view locations in memory.

  DelegateDescription
Public delegateActionSelectorRepresents a delegate that contains the logic for selecting an action method.
Public delegateDataAnnotationsModelValidationFactoryRepresents the method that creates a DataAnnotationsModelValidatorProvider instance.

  EnumerationDescription
Public enumerationFormMethodEnumerates the HTTP request types for a form.
Public enumerationHttpVerbsEnumerates the HTTP verbs.
Public enumerationInputTypeEnumerates the types of input controls.
Public enumerationJsonRequestBehaviorSpecifies whether HTTP GET requests from the client are allowed.
Public enumerationTagRenderModeEnumerates the modes that are available for rendering HTML tags.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft