Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET MVC Reference Manual

ASP.NET MVC - Reference Manual


class

class Description
AcceptVerbsAttribute Represents an attribute that specifies the HTTP verb to which the action method will respond.
ActionDescriptor Provides information about the action method, such as the action method's 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 used to influence the selection of action methods.
ActionNameAttribute Represents an attribute used for the name of an action.
ActionNameSelectorAttribute Represents an attribute that can influence the selection of action methods.
ActionResult Encapsulates the result of an action method and is used to perform framework-level operations on behalf of that action method.
AdditionalMetadataAttribute Provides a class that implements the IMetadataAware interface to support additional metadata.
AjaxHelper Represents support for rendering HTML in AJAX scenarios in views.
AjaxHelper(TModel) Represents support for rendering HTML in AJAX scenarios in strongly typed views.
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 contain HTML markup during model binding by skipping request validation for the property. (It is strongly recommended that applications explicitly check all models that disable request validation to prevent script attacks.)
AreaRegistration Provides a way to register one or more areas within an ASP.NET MVC application.
AreaRegistrationContext Encapsulates the information required to register an area within an ASP.NET MVC application.
AssociatedMetadataProvider Provides an abstract class for implementing a metadata provider.
AssociatedValidatorProvider Provides an abstract class for classes that implement a validation provider.
AsyncController Provides a base class for asynchronous controllers.
AsyncTimeoutAttribute Represents an attribute used to set the timeout value (in milliseconds) of an asynchronous method.
AuthorizationContext Encapsulates the information required when using the AuthorizeAttribute attribute.
AuthorizeAttribute Represents an attribute used to restrict the caller's access to an action method.
BindAttribute Represents an attribute used to provide details about how model binding to a parameter should be performed.
BuildManagerCompiledView Represents the base class for views compiled by the BuildManager class before the view engine renders the view.
BuildManagerViewEngine Provides a base class for view engines.
ByteArrayModelBinder Maps a browser request to a byte array. This class provides a concrete implementation of a model binder.
ChildActionOnlyAttribute Represents an attribute that indicates an action method should only be invoked as a child action.
ChildActionValueProvider Represents a value provider for values in a child action.
ChildActionValueProviderFactory Represents the factory used to create value provider objects for child actions.
ClientDataTypeModelValidatorProvider Returns the client data type model validator.
CompareAttribute Provides an attribute used to compare two properties of a model.
ContentResult Represents a user-defined content type that is the result of an action method.
Controller Provides methods for responding to HTTP requests made to an ASP.NET MVC website.
ControllerActionInvoker Represents a class responsible for invoking a controller's action methods.
ControllerBase Represents the base class for all MVC controllers.
ControllerBuilder Represents a class responsible for dynamically generating controllers.
ControllerContext Encapsulates information about the HTTP request that matches the specified RouteBase and ControllerBase instances.
ControllerDescriptor Encapsulates information describing a controller, such as the controller's name, type, and actions.
ControllerInstanceFilterProvider Adds a controller to a FilterProviderCollection instance.
CustomModelBinderAttribute Represents an attribute that invokes a custom model binder.
DataAnnotationsModelMetadata Provides a container for the common metadata of a data model and the DataAnnotationsModelMetadataProvider and DataAnnotationsModelValidator classes.
DataAnnotationsModelMetadataProvider Implements the default model metadata provider for ASP.NET MVC.
DataAnnotationsModelValidator Provides a model validator.
DataAnnotationsModelValidator(TAttribute) Provides a model validator for the specified validation type.
DataAnnotationsModelValidatorProvider Implements the default validation provider for ASP.NET MVC.
DataErrorInfoModelValidatorProvider Provides a container for an error-message model validator.
DefaultControllerFactory Represents the controller factory registered by default.
DefaultModelBinder Maps a browser request to a data object. This class provides a concrete implementation of a model binder.
DefaultViewLocationCache Represents an in-memory cache of view locations.
DependencyResolver Provides a registration point for dependency resolvers that implement the IDependencyResolver or common service locator IServiceLocator interface.
DependencyResolverExtensions Provides type-safe implementations 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 need no metadata.
EmptyModelValidatorProvider Provides an empty validation provider for models that need no validator.
EmptyResult Represents a result that performs no operation, such as a controller action method that returns nothing.
ExceptionContext Provides the context for using the HandleErrorAttribute class.
ExpressionHelper Provides a helper class for obtaining 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 for sending binary file content to the response.
FileStreamResult Sends binary content to the response using a Stream instance.
Filter Represents a metadata class that contains a reference to the implementation of one or more filter interfaces, along with the filter order and filter scope.
FilterAttribute Represents the base class for action and result filter attributes.
FilterAttributeFilterProvider Defines the filter provider for filter attributes.
FilterInfo Encapsulates information about available action filters.
FilterProviderCollection Represents the collection of the application's filter providers.
FilterProviders Provides a registration point for filters.
FormCollection Contains the application's form value provider.
FormContext Encapsulates the information required to validate and process input data in an HTML form.
FormValueProvider Represents a value provider for form values contained in a NameValueCollection object.
FormValueProviderFactory Represents a class responsible for creating new instances of form value provider objects.
GlobalFilterCollection Represents a class that contains all global filters.
GlobalFilters Represents the collection of global filters.
HandleErrorAttribute Represents an attribute used to handle exceptions raised by an action method.
HandleErrorInfo Encapsulates information about handling errors raised by an action method.
HiddenInputAttribute Represents an attribute that indicates whether a 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 an attribute that restricts an action method so it handles only HTTP DELETE requests.
HttpFileCollectionValueProvider Represents a value provider for values from an HTTP file collection.
HttpFileCollectionValueProviderFactory Represents a class responsible for creating new instances of HTTP file collection value provider objects.
HttpGetAttribute Represents an attribute that restricts an action method so it handles only HTTP GET requests.
HttpNotFoundResult Defines an object used to indicate that the requested resource was not found.
HttpPostAttribute Represents an attribute that restricts an action method so it handles only HTTP POST requests.
HttpPostedFileBaseModelBinder Binds a model to a posted file.
HttpPutAttribute Represents an attribute that restricts an action method so it handles only HTTP PUT requests.
HttpRequestExtensions Extends the HttpRequestBase class, which contains the HTTP values sent by the client in a web request.
HttpStatusCodeResult Provides a method for returning 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 used to send content in JSON format to the response.
JsonValueProviderFactory Enables an action method to send and receive text in JSON format, passing the JSON text to the action method's parameters through model binding.
LinqBinaryModelBinder Maps a browser request to a LINQ Binary object.
ModelBinderAttribute Represents an attribute that associates a model type with a model-builder type.
ModelBinderDictionary Represents a class that contains all the application's model binders (listed by binder type).
ModelBinderProviderCollection Provides a container for a model binder provider.
ModelBinderProviders Provides a container for a model binder provider.
ModelBinders Provides global access to the application's model binders.
ModelBindingContext Provides the context for running a model binder.
ModelClientValidationEqualToRule Provides a container for an equality validation rule sent to the browser.
ModelClientValidationRangeRule Provides a container for a range validation rule sent to the browser.
ModelClientValidationRegexRule Provides a container for a regular-expression client validation rule sent to the browser.
ModelClientValidationRemoteRule Provides a container for a remote validation rule sent to the browser.
ModelClientValidationRequiredRule Provides a container for client-side validation of required fields.
ModelClientValidationRule Provides a base class container for client-side validation rules sent to the browser.
ModelClientValidationStringLengthRule Provides a container for a string-length validation rule sent to the browser.
ModelError Represents an error that occurs during model binding.
ModelErrorCollection A collection of ModelError instances.
ModelMetadata Provides a container for the common metadata of a data model and the ModelMetadataProvider and ModelValidator classes.
ModelMetadataProvider Provides an abstract base class for custom metadata providers.
ModelMetadataProviders Provides a container for the current ModelMetadataProvider instance.
ModelState Encapsulates the state of model binding into a property of an action method parameter, or into the action method parameter itself.
ModelStateDictionary Represents the state of an attempt to bind a posted form to an action method (including validation information).
ModelValidationResult Provides a container for validation results.
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 from which the user can select multiple items.
MvcFilter When implemented in a derived class, provides a metadata class that contains a reference to the implementation of one or more filter interfaces, along with the filter order and filter scope.
MvcHandler Selects the controller that will handle the HTTP request.
MvcHtmlString Represents an HTML-encoded string that should not be encoded again.
MvcHttpHandler Validates and processes an HTTP request.
MvcRouteHandler Creates an object that implements the IHttpHandler interface and passes the request context to that object.
MvcWebRazorHostFactory Creates an instance of the MvcWebPageRazorHost file.
NameValueCollectionExtensions Extends the NameValueCollection object so 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 indicates a controller method is not an action method.
OutputCacheAttribute Represents an attribute that marks an action method whose output will be cached.
ParameterBindingInfo Encapsulates information related to binding action method parameters to a data model.
ParameterDescriptor Contains information describing a parameter.
PartialViewResult Represents a base class for sending a partial view to the response.
PreApplicationStartCode Provides a registration point for pre-start code in ASP.NET Razor applications.
QueryStringValueProvider Represents a value provider for query string values contained in a NameValueCollection object.
QueryStringValueProviderFactory Represents a class responsible for creating new instances of query string value provider objects.
RangeAttributeAdapter Provides an adapter for the RangeAttribute attribute.
RazorView Represents a class used to create views with Razor syntax.
RazorViewEngine Represents a view engine that renders web pages using ASP.NET Razor syntax.
RedirectResult Controls the handling of application actions by redirecting to a specified URI.
RedirectToRouteResult Represents the result of performing a redirect using a specified route value dictionary.
ReflectedActionDescriptor Contains information describing a reflected action method.
ReflectedControllerDescriptor Contains information describing a reflected controller.
ReflectedParameterDescriptor Contains information describing a reflected action method parameter.
RegularExpressionAttributeAdapter Provides an adapter for the RegularExpressionAttribute attribute.
RemoteAttribute Provides an attribute that uses the jQuery validation plugin's remote validator.
RequiredAttributeAdapter Provides an adapter for the RequiredAttributeAttribute attribute.
RequireHttpsAttribute Represents an attribute that forces an insecure 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 the RouteCollection object for MVC routing.
RouteDataValueProvider Represents a value provider for route data contained in an object that implements the IDictionary(TKey, TValue) interface.
RouteDataValueProviderFactory Represents the factory used to create route data value provider objects.
SelectList Represents a list from which the user can select one item.
SelectListItem Represents the selected item in an instance of the SelectList class.
SessionStateAttribute Specifies the session state of a controller.
SessionStateTempDataProvider Provides session state data for the current TempDataDictionary object.
StringLengthAttributeAdapter Provides an adapter for the StringLengthAttribute attribute.
TempDataDictionary Represents a data set that persists only from one request to the next.
TemplateInfo Encapsulates information about the current template context.
UrlHelper Contains methods for generating URLs for ASP.NET MVC within the application.
UrlParameter Represents an optional parameter used by the MvcHandler class during routing.
ValidatableObjectAdapter Provides an adapter for validatable objects.
ValidateAntiForgeryTokenAttribute Represents an attribute used to prevent forged requests.
ValidateInputAttribute Represents an attribute that marks an action method whose input must be validated.
ValueProviderCollection Represents the collection of the application's value provider objects.
ValueProviderDictionary **Obsolete.** Represents a dictionary of the application's value providers.
ValueProviderFactories Represents a container for value provider factory objects.
ValueProviderFactory Represents the factory used to create value provider objects.
ValueProviderFactoryCollection Represents the collection of the application's value provider factories.
ValueProviderResult Represents the result of binding a value (such as a form-posted value or a query string value) to an action method parameter property, or to the parameter itself.
ViewContext Encapsulates information related to rendering a view.
ViewDataDictionary Represents a container used to pass data between a controller and a view.
ViewDataDictionary(TModel) Represents a container used to pass strongly typed data between a controller and a view.
ViewDataInfo Encapsulates information about the current template content used by development templates and the HTML helpers that interact with the template.
ViewEngineCollection Represents the collection of view engines available to the application.
ViewEngineResult Represents the result of locating a view engine.
ViewEngines Represents the 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 render a view as a Web Forms page.
ViewPage(TModel) Represents the information required to render a strongly typed view as a Web Forms page.
ViewResult Represents a class used to render a view using the IView instance returned by an IViewEngine object.
ViewResultBase Represents a base class that provides a model to a view and renders the view to the response.
ViewStartPage Provides an abstract class that can be used to implement view start (master) pages.
ViewTemplateUserControl Provides a container for a TemplateInfo object.
ViewTemplateUserControl(TModel) Provides a container for a TemplateInfo object.
ViewType Represents the type of a view.
ViewUserControl Represents the information required to generate a user control.
ViewUserControl(TModel) Represents the information required to generate a strongly typed user control.
VirtualPathProviderViewEngine Represents an abstract base class implementation of the IViewEngine interface.
WebFormView Represents the information required to generate a Web Forms page in ASP.NET MVC.
WebFormViewEngine Represents a view engine that renders a Web Forms page to the response.
WebViewPage Represents the properties and methods required to render a view using ASP.NET Razor syntax.
WebViewPage(TModel) Represents the properties and methods required to render a view using ASP.NET Razor syntax.

an interface

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