ASP.NET Tutoria...login
ASP.NET Tutorial
author:php.cn  update time:2022-04-11 14:18:18

MVC reference manual


ASP.NET MVC - Reference Manual


Class

ClassDescription
AcceptVerbsAttributeRepresents an attribute that specifies the HTTP verb to which the action method will respond.
ActionDescriptorProvides information about the action method, such as the action method's name, controllers, parameters, attributes, and filters.
ActionExecutedContextProvides the context for the ActionExecuted method of the ActionFilterAttribute class.
ActionExecutingContextProvides the context for the ActionExecuting method of the ActionFilterAttribute class.
ActionFilterAttributeRepresents the base class of filter attributes.
ActionMethodSelectorAttributeRepresents an attribute used to affect the selection of action methods.
ActionNameAttribute Represents an attribute used for the name of an operation.
ActionNameSelectorAttributeRepresents an attribute that can affect the selection of action methods.
ActionResultEncapsulates the result of an action method and is used to perform frame-level operations on behalf of the action method.
AdditionalMetadataAttribute Provides a class that implements the IMetadataAware interface to support additional metadata.
AjaxHelper Indicates support for rendering HTML in AJAX scenarios in views.
AjaxHelper(TModel)Indicates support for rendering HTML in AJAX scenarios in strongly typed views.
AjaxRequestExtensionsRepresents a class that extends the HttpRequestBase class by adding the functionality to determine whether an HTTP request is an AJAX request.
AllowHtmlAttributeAllow requests to include HTML markup during model binding by skipping request validation of the attribute. (It is strongly recommended that applications explicitly check all models that disable request validation to prevent script attacks.)
AreaRegistration Provided within an ASP.NET MVC application A way to register one or more zones.
AreaRegistrationContextEncapsulates the information needed to register an area within an ASP.NET MVC application.
AssociatedMetadataProvider Provides an abstract class for implementing metadata providers.
AssociatedValidatorProvider Provides an abstract class for classes used to implement validation providers.
AsyncController Provides a base class for asynchronous controllers.
AsyncTimeoutAttributeRepresents an attribute that is used to set the timeout value (in milliseconds) of an asynchronous method.
AuthorizationContextEncapsulates the information required when using the AuthorizeAttribute attribute.
AuthorizeAttributeRepresents an attribute that is used to restrict the caller's access to the operation method.
BindAttributeRepresents an attribute that is used to provide details about how model binding to parameters should occur.
BuildManagerCompiledViewRepresents a base class for views compiled by the BuildManager class before the view is rendered by the view engine.
BuildManagerViewEngine Provides a base class for the view engine.
ByteArrayModelBinderMaps browser requests to byte arrays.
ChildActionOnlyAttributeRepresents an attribute that indicates that an action method should only be called as a child action.
ChildActionValueProviderThe value provider that represents the value in the child action.
ChildActionValueProviderFactoryRepresents a factory used to create value provider objects for child operations.
ClientDataTypeModelValidatorProvider Returns the client data type model validator.
CompareAttribute Provides attributes for comparing two attributes of a model.
ContentResult Represents the user-defined content type that is the result of the operation method.
ControllerProvides methods for responding to HTTP requests made to an ASP.NET MVC website.
ControllerActionInvoker represents a class that is responsible for calling the controller's action method.
ControllerBase Represents the base class of all MVC controllers.
ControllerBuilder represents a class that is responsible for dynamically generating controllers.
ControllerContextEncapsulates information about HTTP requests matching the specified RouteBase and ControllerBase instances.
ControllerDescriptorEncapsulates information describing the controller, such as the name, type and operation of the controller.
ControllerInstanceFilterProviderAdd a controller to a FilterProviderCollection instance.
CustomModelBinderAttributeRepresents an attribute that calls a custom model binder.
DataAnnotationsModelMetadataProvides containers for the data model's public metadata, the DataAnnotationsModelMetadataProvider class, and the DataAnnotationsModelValidator class.
DataAnnotationsModelMetadataProviderImplements the default model metadata provider for ASP.NET MVC.
DataAnnotationsModelValidator Provides model validator.
DataAnnotationsModelValidator(TAttribute) Provides a model validator for the specified validation type.
DataAnnotationsModelValidatorProviderImplements the default validation provider for ASP.NET MVC.
DataErrorInfoModelValidatorProvider Provides a container for the error message model validator.
DefaultControllerFactoryRepresents the controller factory registered by default.
DefaultModelBinderMaps browser requests to data objects. This class provides a concrete implementation of the model binder.
DefaultViewLocationCacheRepresents the memory cache of the view location.
DependencyResolverProvides a registration point for dependency resolvers that implement the IDependencyResolver or public service locator IServiceLocator interface.
DependencyResolverExtensionsProvides type-safe implementations of GetService and GetServices.
DictionaryValueProvider(TValue)Represents the base class for value providers that take values ​​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.
EmptyResultRepresents a result that does not perform any operation, such as a controller operation method that does not return anything.
ExceptionContextP Provides a context using the HandleErrorAttribute class.
ExpressionHelper Provides a helper class for getting the model name from an expression.
FieldValidationMetadata Provides a container for client field validation metadata.
FileContentResultSends the contents of a binary file to the response.
FilePathResultSend the contents of the file to the response.
FileResultRepresents a base class for sending binary file contents to a response.
FileStreamResultUse a Stream instance to send binary content to the response.
Filter Represents a metadata class that contains a reference to an implementation of one or more filter interfaces, filter order, and filter scope.
FilterAttribute Base class representing operation and result filter attributes.
FilterAttributeFilterProviderFilter provider that defines filter attributes.
FilterInfoEncapsulates information about available operational filters.
FilterProviderCollectionRepresents a collection of filter providers for an application.
FilterProvidersProvides a registration point for filters.
FormCollectionContains the application's form value providers.
FormContextEncapsulates the information needed to validate and process input data in an HTML form.
FormValueProviderRepresents the value provider for the form values ​​contained in the NameValueCollection object.
FormValueProviderFactoryRepresents a class that is responsible for creating new instances of form value provider objects.
GlobalFilterCollectionRepresents a class that contains all global filters.
GlobalFilters represents a global filter collection.
HandleErrorAttributeRepresents an attribute that is used to handle exceptions raised by operation methods.
HandleErrorInfoEncapsulates information about handling errors raised by action methods.
HiddenInputAttributeRepresents an attribute that indicates whether an attribute value or field value should be rendered as a hidden input element.
HtmlHelperIndicates support for rendering HTML controls in views.
HtmlHelper(TModel)Indicates support for rendering HTML controls in strongly typed views.
HttpDeleteAttributeRepresents an attribute that is used to restrict an action method so that it only handles HTTP DELETE requests.
HttpFileCollectionValueProviderRepresents the value provider to be used for values ​​from an HTTP file collection.
HttpFileCollectionValueProviderFactoryRepresents a class that is responsible for creating new instances of HTTP file collection value provider objects.
HttpGetAttributeRepresents an attribute that is used to restrict an action method so that it only handles HTTP GET requests.
HttpNotFoundResultDefine an object used to indicate that the requested resource was not found.
HttpPostAttributeRepresents an attribute that is used to restrict an action method so that it only handles HTTP POST requests.
HttpPostedFileBaseModelBinderBind the model to the posted file.
HttpPutAttributeRepresents an attribute that is used to restrict an action method so that it only handles HTTP PUT requests.
HttpRequestExtensionsExtensions the HttpRequestBase class, which contains the HTTP values ​​sent by the client in a web request.
HttpStatusCodeResult Provides a method for returning the result of an operation with a specific HTTP response status code and description.
HttpUnauthorizedResultRepresents the result of an unauthorized HTTP request.
JavaScriptResultSend JavaScript content to the response.
JsonResultRepresents a class used to send JSON-formatted content to a response.
JsonValueProviderFactoryEnables action methods to send and receive JSON-formatted text and pass JSON text to the action method's parameters in model binding.
LinqBinaryModelBinderMaps browser requests to LINQ Binary objects.
ModelBinderAttributeRepresents an attribute that is used to associate a model type to a model-generator type.
ModelBinderDictionaryRepresents a class that contains all of an application's model binders (listed by binder type).
ModelBinderProviderCollectionProvides a container for the model binder provider.
ModelBinderProvidersProvides a container for model binder providers.
ModelBinders Provides global access to the application's model binders.
ModelBindingContext Provides the context in which the model binder runs.
ModelClientValidationEqualToRule Provides a container for equality validation rules sent to the browser.
ModelClientValidationRangeRuleProvides a container for range validation rules sent to the browser.
ModelClientValidationRegexRuleProvides a container for regular expression client-side validation rules sent to the browser.
ModelClientValidationRemoteRule Provides a container for remote validation rules sent to the browser.
ModelClientValidationRequiredRule Provides a container for client-side validation of required fields.
ModelClientValidationRule Provides a base class container for client validation rules sent to the browser.
ModelClientValidationStringLengthRuleProvides a container for string length validation rules sent to the browser.
ModelError Represents an error that occurred during model binding.
ModelErrorCollectionA collection of ModelError instances.
ModelMetadataProvides containers for the data model's public metadata, the ModelMetadataProvider class, and the ModelValidator class.
ModelMetadataProvider Provides an abstract base class for custom metadata providers.
ModelMetadataProviders Provides a container for the current ModelMetadataProvider instance.
ModelStateEncapsulate the state of the model binding into a property of the operation method parameter or the operation method parameter itself.
ModelStateDictionaryRepresents the status of an attempt to bind a sent form to an action method that includes validation information.
ModelValidationResult Provides a container for the validation result.
ModelValidator Provides a base class for implementing validation logic.
ModelValidatorProvider Provides a list of validators for the model.
ModelValidatorProviderCollection Provides a container for a list of validation providers.
ModelValidatorProviders Provides containers for the current validation provider.
MultiSelectList Represents a list of items from which the user can select multiple items.
MvcFilterWhen implemented in a derived class, provides a metadata class that contains the implementation of one or more filter interfaces, filter order, and filtering A reference to the scope of the scope.
MvcHandlerSelect the controller that will handle HTTP requests.
MvcHtmlString Represents an HTML-encoded string that should not be encoded again.
MvcHttpHandlerVerify and handle HTTP requests.
MvcRouteHandlerCreate an object that implements the IHttpHandler interface and pass the request context to the object.
MvcWebRazorHostFactoryCreate an instance of the MvcWebPageRazorHost file.
NameValueCollectionExtensionsExtensions the NameValueCollection object to be able to copy the collection to the specified dictionary.
NameValueCollectionValueProviderRepresents the base class for value providers whose values ​​come from NameValueCollection objects.
NoAsyncTimeoutAttribute Provides a convenience wrapper for the AsyncTimeoutAttribute attribute.
NonActionAttributeRepresents an attribute that is used to indicate that a controller method is not an action method.
OutputCacheAttributeRepresents an attribute used to mark action methods whose output will be cached.
ParameterBindingInfoEncapsulates information related to binding action method parameters to the data model.
ParameterDescriptorContains information describing the parameter.
PartialViewResultRepresents a base class for sending a partial view to a response.
PreApplicationStartCode Provides a registration point for ASP.NET Razor application pre-start code.
QueryStringValueProviderRepresents the value provider for the query string contained in the NameValueCollection object.
QueryStringValueProviderFactoryRepresents a class that is responsible for creating new instances of query string value provider objects.
RangeAttributeAdapter Provides an adapter for the RangeAttribute attribute.
RazorView Represents a class for creating views with Razor syntax.
RazorViewEngineRepresents a view engine for rendering web pages using ASP.NET Razor syntax.
RedirectResultControls the processing of application operations by redirecting to a specified URI.
RedirectToRouteResultRepresents the result of using the specified route value dictionary to perform redirection.
ReflectedActionDescriptorContains information describing the reflected action method.
ReflectedControllerDescriptor Contains information describing the reflected controller.
ReflectedParameterDescriptorContains information describing the reflected action method parameters.
RegularExpressionAttributeAdapter Provides an adapter for the RegularExpressionAttribute attribute.
RemoteAttribute Provides features for remote validators using the jQuery validation plugin.
RequiredAttributeAdapterAn adapter that provides the RequiredAttributeAttribute attribute.
RequireHttpsAttribute Represents an attribute that is used to force insecure HTTP requests to be resent over HTTPS.
ResultExecutedContextProvides the context for the OnResultExecuted method of the ActionFilterAttribute class.
ResultExecutingContextProvides the context for the OnResultExecuting method of the ActionFilterAttribute class.
RouteCollectionExtensionsExtend RouteCollection objects for MVC routing.
RouteDataValueProviderRepresents the value provider for route data contained in an object that implements the IDictionary(TKey, TValue) interface.
RouteDataValueProviderFactoryRepresents the factory used to create route data value provider objects.
SelectList represents a list from which the user can select an item.
SelectListItemRepresents the selected item in an instance of the SelectList class.
SessionStateAttributeSpecifies the session state of the controller.
SessionStateTempDataProviderProvides session state data for the current TempDataDictionary object.
StringLengthAttributeAdapter Provides an adapter for the StringLengthAttribute attribute.
TempDataDictionaryRepresents a data set that is persisted only from one request to the next.
TemplateInfoEncapsulates information about the current template context.
UrlHelperContains methods for generating URLs for ASP.NET MVC within an application.
UrlParameterRepresents the optional parameters used by the MvcHandler class during the routing process.
ValidatableObjectAdapter Provides a validable object adapter.
ValidateAntiForgeryTokenAttributeRepresents the attribute used to prevent forged requests.
ValidateInputAttributeRepresents an attribute used to mark action methods whose input must be validated.
ValueProviderCollectionRepresents a collection of value provider objects for an application.
ValueProviderDictionary is obsolete. A dictionary representing the application's value provider.
ValueProviderFactoriesRepresents a container for value provider factory objects.
ValueProviderFactoryRepresents the factory used to create value provider objects.
ValueProviderFactoryCollectionRepresents a collection of value provider factories for an application.
ValueProviderResult Represents binding a value (such as the value sent by the form or the value in the query string) to the action method parameter attribute or to the parameter the result itself.
ViewContextEncapsulates information related to the presented view.
ViewDataDictionaryRepresents 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.
ViewDataInfoEncapsulates information about the current template content used to develop the template and the HTML helper that interacts with the template.
ViewEngineCollectionRepresents the collection of view engines available to the application.
ViewEngineResultRepresents the result of positioning the view engine.
ViewEngines Represents the collection of view engines available to the application.
ViewMasterPage represents the information required to generate the master view page.
ViewMasterPage(TModel)Represents the information required to generate a strongly typed master view page.
ViewPageRepresents the properties and methods required to render a view as a Web Forms page.
ViewPage(TModel)Represents the information needed to render a strongly typed view into a Web Forms page.
ViewResultRepresents a class that is used to render a view using an IView instance returned by an IViewEngine object.
ViewResultBaseRepresents a base class used to provide a model for a view and render the view to the response.
ViewStartPage Provides an abstract class that can be used to implement a view startup (master) page.
ViewTemplateUserControl Provides a container for TemplateInfo objects.
ViewTemplateUserControl(TModel) Provides a container for TemplateInfo objects.
ViewType represents the type of view.
ViewUserControlRepresents the information required to generate the user control.
ViewUserControl(TModel)Represents the information required to generate a strongly typed user control.
VirtualPathProviderViewEngineRepresents the abstract base class implementation of the IViewEngine interface.
WebFormViewRepresents the information needed to generate a Web Forms page in ASP.NET MVC.
WebFormViewEngineRepresents a view engine used to render Web Forms pages in response.
WebViewPageRepresents 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.


Interface

InterfaceDescription
IActionFilterDefine the methods used in action filters.
IActionInvoker Defines the contract for an action invoker that is used to invoke an operation in response to an HTTP request.
IAuthorizationFilter Defines the methods required for the authorization filter.
IClientValidatable Provides a method for the ASP.NET MVC validation framework to discover at runtime whether a validator supports client-side validation.
IControllerDefine the methods required by the controller.
IControllerActivatorGive fine-grained control over how controllers are instantiated using dependency injection.
IControllerFactory Define the methods required by the controller factory.
IDependencyResolverDefine methods that simplify service location and dependency resolution.
IExceptionFilterMethods required to define exception filters.
IFilterProvider Provides an interface for finding filters.
IMetadataAwareProvides an interface for exposing attributes to the AssociatedMetadataProvider class.
IModelBinder Defines the methods required by the model binder.
IModelBinderProvider Defines methods for dynamically implementing model binding for classes that implement the IModelBinder interface.
IMvcFilterDefine the members used to specify the filter order and whether multiple filters are allowed.
IResultFilterMethods required to define the result filter.
IRouteWithAreaAssociate a route with an area in an ASP.NET MVC application.
ITempDataProvider Defines contracts for temporary data providers that are used to store data to be viewed on the next request.
IUnvalidatedValueProviderRepresents an IValueProvider interface that can skip request verification.
IValueProviderDefines the methods required for a value provider in ASP.NET MVC.
IViewDefines the methods required by the view.
IViewDataContainerMethods required to define the view data dictionary.
IViewEngine Defines the methods required by the view engine.
IViewLocationCache Defines the methods required to cache the view location in memory.
IViewPageActivatorGive granular control over how view pages are created using dependency injection.

php.cn