Chinaunix首页 | 论坛 | 博客
  • 博客访问: 484673
  • 博文数量: 112
  • 博客积分: 5696
  • 博客等级: 大校
  • 技术积分: 1720
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-17 09:58
文章分类

全部博文(112)

文章存档

2011年(22)

2010年(28)

2009年(21)

2008年(41)

分类: WINDOWS

2010-08-11 20:05:44

 // Summary:
        //     Initializes a new instance of the System.Web.Mvc.Controller class.
        protected Controller();

        // Summary:
        //     Gets the action invoker for the controller.
        //
        // Returns:
        //     The action invoker.
        public IActionInvoker ActionInvoker { get; set; }
        //
        // Summary:
        //     Gets or sets the binder.
        //
        // Returns:
        //     The binder.
        protected internal ModelBinderDictionary Binders { get; set; }
        //
        // Summary:
        //     Gets HTTP-specific information about an individual HTTP request.
        //
        // Returns:
        //     The HTTP context.
        public HttpContextBase HttpContext { get; }
        //
        // Summary:
        //     Gets the model state dictionary object that contains the state of the model
        //     and of model-binding validation.
        //
        // Returns:
        //     The model state dictionary.
        public ModelStateDictionary ModelState { get; }
        //
        // Summary:
        //     Gets the System.Web.HttpRequestBase object for the current HTTP request.
        //
        // Returns:
        //     The request object.
        public HttpRequestBase Request { get; }
        //
        // Summary:
        //     Gets the System.Web.HttpResponseBase object for the current HTTP response.
        //
        // Returns:
        //     The response object.
        public HttpResponseBase Response { get; }
        //
        // Summary:
        //     Gets the route data for the current request.
        //
        // Returns:
        //     The route data.
        public RouteData RouteData { get; }
        //
        // Summary:
        //     Gets the System.Web.HttpServerUtilityBase object that provides methods that
        //     are used during Web request processing.
        //
        // Returns:
        //     The HTTP server object.
        public HttpServerUtilityBase Server { get; }
        //
        // Summary:
        //     Gets the System.Web.HttpSessionStateBase object for the current HTTP request.
        //
        // Returns:
        //     The HTTP session-state object for the current HTTP request.
        public HttpSessionStateBase Session { get; }
        //
        // Summary:
        //     Gets the temporary-data provider object that is used to store data for the
        //     next request.
        //
        // Returns:
        //     The temporary-data provider.
        public ITempDataProvider TempDataProvider { get; set; }
        //
        // Summary:
        //     Gets the URL helper object that is used to generate URLs by using routing.
        //
        // Returns:
        //     The URL helper object.
        public UrlHelper Url { get; set; }
        //
        // Summary:
        //     Gets the user security information for the current HTTP request.
        //
        // Returns:
        //     The user security information for the current HTTP request.
        public IPrincipal User { get; }

        // Summary:
        //     Creates a content result object by using a string.
        //
        // Parameters:
        //   content:
        //     The content to write to the response.
        //
        // Returns:
        //     The content result instance.
        protected internal ContentResult Content(string content);
        //
        // Summary:
        //     Creates a content result object by using a string and the content type.
        //
        // Parameters:
        //   content:
        //     The content to write to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        // Returns:
        //     The content result instance.
        protected internal ContentResult Content(string content, string contentType);
        //
        // Summary:
        //     Creates a content result object by using a string, the content type, and
        //     content encoding.
        //
        // Parameters:
        //   content:
        //     The content to write to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        //   contentEncoding:
        //     The content encoding.
        //
        // Returns:
        //     The content result instance.
        protected internal virtual ContentResult Content(string content, string contentType, Encoding contentEncoding);
        //
        // Summary:
        //     Creates an action invoker.
        //
        // Returns:
        //     An action invoker.
        protected virtual IActionInvoker CreateActionInvoker();
        //
        // Summary:
        //     Creates a temporary data provider.
        //
        // Returns:
        //     A temporary data provider.
        protected virtual ITempDataProvider CreateTempDataProvider();
        //
        // Summary:
        //     Releases all resources that are used by the current instance of the System.Web.Mvc.Controller
        //     class.
        public void Dispose();
        //
        // Summary:
        //     Releases unmanaged resources and optionally releases managed resources.
        //
        // Parameters:
        //   disposing:
        //     true to release both managed and unmanaged resources; false to release only
        //     unmanaged resources.
        protected virtual void Dispose(bool disposing);
        //
        // Summary:
        //     Invokes the action in the current controller context.
        protected override void ExecuteCore();
        //
        // Summary:
        //     Creates a System.Web.Mvc.FileContentResult object by using the file contents
        //     and file type.
        //
        // Parameters:
        //   fileContents:
        //     The binary content to send to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        // Returns:
        //     The file-content result object.
        protected internal FileContentResult File(byte[] fileContents, string contentType);
        //
        // Summary:
        //     Creates a System.Web.Mvc.FileStreamResult object by using the System.IO.Stream
        //     object and content type.
        //
        // Parameters:
        //   fileStream:
        //     The stream to send to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        // Returns:
        //     The file-content result object.
        protected internal FileStreamResult File(Stream fileStream, string contentType);
        //
        // Summary:
        //     Creates a System.Web.Mvc.FilePathResult object by using the file name and
        //     the content type.
        //
        // Parameters:
        //   fileName:
        //     The path of the file to send to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        // Returns:
        //     The file-stream result object.
        protected internal FilePathResult File(string fileName, string contentType);
        //
        // Summary:
        //     Creates a System.Web.Mvc.FileContentResult object by using the file contents,
        //     content type, and the destination file name.
        //
        // Parameters:
        //   fileContents:
        //     The binary content to send to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        //   fileDownloadName:
        //     The file name to use in the file-download dialog box that is displayed in
        //     the browser.
        //
        // Returns:
        //     The file-content result object.
        protected internal virtual FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName);
        //
        // Summary:
        //     Creates a System.Web.Mvc.FileStreamResult object using the System.IO.Stream
        //     object, the content type, and the target file name.
        //
        // Parameters:
        //   fileStream:
        //     The stream to send to the response.
        //
        //   contentType:
        //     The content type (MIME type)
        //
        //   fileDownloadName:
        //     The file name to use in the file-download dialog box that is displayed in
        //     the browser.
        //
        // Returns:
        //     The file-stream result object.
        protected internal virtual FileStreamResult File(Stream fileStream, string contentType, string fileDownloadName);
        //
        // Summary:
        //     Creates a System.Web.Mvc.FilePathResult object by using the file name, the
        //     content type, and the file download name.
        //
        // Parameters:
        //   fileName:
        //     The path of the file to send to the response.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        //   fileDownloadName:
        //     The file name to use in the file-download dialog box that is displayed in
        //     the browser.
        //
        // Returns:
        //     The file-stream result object.
        protected internal virtual FilePathResult File(string fileName, string contentType, string fileDownloadName);
        //
        // Summary:
        //     Called when a request matches this controller, but no method with the specified
        //     action name is found in the controller.
        //
        // Parameters:
        //   actionName:
        //     The name of the attempted action.
        protected virtual void HandleUnknownAction(string actionName);
        //
        // Summary:
        //     Initializes data that might not be available when the constructor is called.
        //
        // Parameters:
        //   requestContext:
        //     The HTTP context and route data.
        protected override void Initialize(RequestContext requestContext);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JavaScriptResult object.
        //
        // Parameters:
        //   script:
        //     The JavaScript code to run on the client
        //
        // Returns:
        //     The System.Web.Mvc.JavaScriptResult object that writes the script to the
        //     response.
        protected internal virtual JavaScriptResult JavaScript(string script);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JsonResult object that serializes the specified
        //     object to JavaScript Object Notation (JSON).
        //
        // Parameters:
        //   data:
        //     The JavaScript object graph to serialize.
        //
        // Returns:
        //     The JSON result object that serializes the specified object to JSON format.
        //     The result object that is prepared by this method is written to the response
        //     by the MVC framework when the object is executed.
        protected internal JsonResult Json(object data);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JsonResult object that serializes the specified
        //     object to JavaScript Object Notation (JSON) format using the specified JSON
        //     request behavior.
        //
        // Parameters:
        //   data:
        //     The JavaScript object graph to serialize.
        //
        //   behavior:
        //     The content type (MIME type).
        //
        // Returns:
        //     The result object that serializes the specified object to JSON format.
        protected internal JsonResult Json(object data, JsonRequestBehavior behavior);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JsonResult object that serializes the specified
        //     object to JavaScript Object Notation (JSON) format.
        //
        // Parameters:
        //   data:
        //     The JavaScript object graph to serialize.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        // Returns:
        //     The JSON result object that serializes the specified object to JSON format.
        protected internal JsonResult Json(object data, string contentType);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JsonResult object that serializes the specified
        //     object to JavaScript Object Notation (JSON) format.
        //
        // Parameters:
        //   data:
        //     The JavaScript object graph to serialize.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        //   contentEncoding:
        //     The content encoding.
        //
        // Returns:
        //     The JSON result object that serializes the specified object to JSON format.
        protected internal virtual JsonResult Json(object data, string contentType, Encoding contentEncoding);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JsonResult object that serializes the specified
        //     object to JavaScript Object Notation (JSON) format using the specified content
        //     type and JSON request behavior.
        //
        // Parameters:
        //   data:
        //     The JavaScript object graph to serialize.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        //   behavior:
        //     The JSON request behavior
        //
        // Returns:
        //     The result object that serializes the specified object to JSON format.
        protected internal JsonResult Json(object data, string contentType, JsonRequestBehavior behavior);
        //
        // Summary:
        //     Creates a System.Web.Mvc.JsonResult object that serializes the specified
        //     object to JavaScript Object Notation (JSON) format using the content type,
        //     content encoding, and the JSON request behavior.
        //
        // Parameters:
        //   data:
        //     The JavaScript object graph to serialize.
        //
        //   contentType:
        //     The content type (MIME type).
        //
        //   contentEncoding:
        //     The content encoding.
        //
        //   behavior:
        //     The JSON request behavior
        //
        // Returns:
        //     The result object that serializes the specified object to JSON format.
        protected internal virtual JsonResult Json(object data, string contentType, Encoding contentEncoding, JsonRequestBehavior behavior);
        //
        // Summary:
        //     Called after the action method is invoked.
        //
        // Parameters:
        //   filterContext:
        //     Information about the current request and action.
        protected virtual void OnActionExecuted(ActionExecutedContext filterContext);
        //
        // Summary:
        //     Called before the action method is invoked.
        //
        // Parameters:
        //   filterContext:
        //     Information about the current request and action.
        protected virtual void OnActionExecuting(ActionExecutingContext filterContext);
        //
        // Summary:
        //     Called when authorization occurs.
        //
        // Parameters:
        //   filterContext:
        //     Information about the current request and action.
        protected virtual void OnAuthorization(AuthorizationContext filterContext);
        //
        // Summary:
        //     Called when an unhandled exception occurs in the action.
        //
        // Parameters:
        //   filterContext:
        //     Information about the current request and action.
        protected virtual void OnException(ExceptionContext filterContext);
        //
        // Summary:
        //     Called after the action result that is returned by an action method is executed.
        //
        // Parameters:
        //   filterContext:
        //     Information about the current request and action result
        protected virtual void OnResultExecuted(ResultExecutedContext filterContext);
        //
        // Summary:
        //     Called before the action result that is returned by an action method is executed.
        //
        // Parameters:
        //   filterContext:
        //     Information about the current request and action result
        protected virtual void OnResultExecuting(ResultExecutingContext filterContext);
        //
        // Summary:
        //     Creates a System.Web.Mvc.PartialViewResult object that renders a partial
        //     view.
        //
        // Returns:
        //     A partial-view result object.
        protected internal PartialViewResult PartialView();
        //
        // Summary:
        //     Creates a System.Web.Mvc.PartialViewResult object that renders a partial
        //     view, by using the specified model.
        //
        // Parameters:
        //   model:
        //     The model that is rendered by the partial view
        //
        // Returns:
        //     A partial-view result object.
        protected internal PartialViewResult PartialView(object model);
        //
        // Summary:
        //     Creates a System.Web.Mvc.PartialViewResult object that renders a partial
        //     view, by using the specified view name.
        //
        // Parameters:
        //   viewName:
        //     The name of the view that is rendered to the response.
        //
        // Returns:
        //     A partial-view result object.
        protected internal PartialViewResult PartialView(string viewName);
        //
        // Summary:
        //     Creates a System.Web.Mvc.PartialViewResult object that renders a partial
        //     view, by using the specified view name and model.
        //
        // Parameters:
        //   viewName:
        //     The name of the view that is rendered to the response.
        //
        //   model:
        //     The model that is rendered by the partial view
        //
        // Returns:
        //     A partial-view result object.
        protected internal virtual PartialViewResult PartialView(string viewName, object model);
        //
        // Summary:
        //     Creates a System.Web.Mvc.RedirectResult object that redirects to the specified
        //     URL.
        //
        // Parameters:
        //   url:
        //     The URL to redirect to.
        //
        // Returns:
        //     The redirect result object.
        protected internal virtual RedirectResult Redirect(string url);
        //
        // Summary:
        //     Redirects to the specified action using the action name.
        //
        // Parameters:
        //   actionName:
        //     The name of the action.
        //
        // Returns:
        //     The redirect result object.
        protected internal RedirectToRouteResult RedirectToAction(string actionName);
        //
        // Summary:
        //     Redirects to the specified action using the action name and route values.
        //
        // Parameters:
        //   actionName:
        //     The name of the action.
        //
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect result object.
        protected internal RedirectToRouteResult RedirectToAction(string actionName, object routeValues);
        //
        // Summary:
        //     Redirects to the specified action using the action name and route dictionary.
        //
        // Parameters:
        //   actionName:
        //     The name of the action.
        //
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect result object.
        protected internal RedirectToRouteResult RedirectToAction(string actionName, RouteValueDictionary routeValues);
        //
        // Summary:
        //     Redirects to the specified action using the action name and controller name.
        //
        // Parameters:
        //   actionName:
        //     The name of the action.
        //
        //   controllerName:
        //     The name of the controller
        //
        // Returns:
        //     The redirect result object.
        protected internal RedirectToRouteResult RedirectToAction(string actionName, string controllerName);
        //
        // Summary:
        //     Redirects to the specified action using the action name, controller name,
        //     and route values.
        //
        // Parameters:
        //   actionName:
        //     The name of the action.
        //
        //   controllerName:
        //     The name of the controller
        //
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect result object.
        protected internal RedirectToRouteResult RedirectToAction(string actionName, string controllerName, object routeValues);
        //
        // Summary:
        //     Redirects to the specified action using the action name, controller name,
        //     and route dictionary.
        //
        // Parameters:
        //   actionName:
        //     The name of the action.
        //
        //   controllerName:
        //     The name of the controller
        //
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect result object.
        protected internal virtual RedirectToRouteResult RedirectToAction(string actionName, string controllerName, RouteValueDictionary routeValues);
        //
        // Summary:
        //     Redirects to the specified route using the specified route values.
        //
        // Parameters:
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect-to-route result object.
        protected internal RedirectToRouteResult RedirectToRoute(object routeValues);
        //
        // Summary:
        //     Redirects to the specified route using the route dictionary.
        //
        // Parameters:
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect-to-route result object.
        protected internal RedirectToRouteResult RedirectToRoute(RouteValueDictionary routeValues);
        //
        // Summary:
        //     Redirects to the specified route using the route name.
        //
        // Parameters:
        //   routeName:
        //     The name of the route
        //
        // Returns:
        //     The redirect-to-route result object.
        protected internal RedirectToRouteResult RedirectToRoute(string routeName);
        //
        // Summary:
        //     Redirects to the specified route using the route name and route values.
        //
        // Parameters:
        //   routeName:
        //     The name of the route
        //
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect-to-route result object.
        protected internal RedirectToRouteResult RedirectToRoute(string routeName, object routeValues);
        //
        // Summary:
        //     Redirects to the specified route using the route name and route dictionary.
        //
        // Parameters:
        //   routeName:
        //     The name of the route
        //
        //   routeValues:
        //     The parameters for a route.
        //
        // Returns:
        //     The redirect-to-route result object.
        protected internal virtual RedirectToRouteResult RedirectToRoute(string routeName, RouteValueDictionary routeValues);
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        //
        // Exceptions:
        //   System.ArgumentNullException:
        //     The model parameter or the System.Web.Mvc.ControllerBase.ValueProvider property
        //     is null.
        protected internal bool TryUpdateModel(TModel model) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        protected internal bool TryUpdateModel(TModel model, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider and a prefix.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        //
        // Exceptions:
        //   System.ArgumentNullException:
        //     The model parameter or the System.Web.Mvc.ControllerBase.ValueProvider property
        //     is null.
        protected internal bool TryUpdateModel(TModel model, string prefix) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider and included properties.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        //
        // Exceptions:
        //   System.ArgumentNullException:
        //     The model parameter or the System.Web.Mvc.ControllerBase.ValueProvider property
        //     is null.
        protected internal bool TryUpdateModel(TModel model, string[] includeProperties) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider
        //     and a prefix.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        protected internal bool TryUpdateModel(TModel model, string prefix, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider, a prefix, and included properties.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        //
        // Exceptions:
        //   System.ArgumentNullException:
        //     The model parameter or the System.Web.Mvc.ControllerBase.ValueProvider property
        //     is null.
        protected internal bool TryUpdateModel(TModel model, string prefix, string[] includeProperties) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider
        //     and a list of properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        protected internal bool TryUpdateModel(TModel model, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider,
        //     a prefix, and included properties.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        protected internal bool TryUpdateModel(TModel model, string prefix, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider, a prefix, a list of properties to exclude, and a list of
        //     properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   excludeProperties:
        //     A list of properties to explicitly exclude from the update. These are excluded
        //     even if they are listed in the includeProperties parameter list.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        //
        // Exceptions:
        //   System.ArgumentNullException:
        //     The model parameter or the System.Web.Mvc.ControllerBase.ValueProvider property
        //     is null.
        protected internal bool TryUpdateModel(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider,
        //     a prefix, a list of properties to exclude , and a list of properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   excludeProperties:
        //     A list of properties to explicitly exclude from the update. These are excluded
        //     even if they are listed in the includeProperties parameter list.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Returns:
        //     true if the update is successful; otherwise, false.
        protected internal bool TryUpdateModel(TModel model, string prefix, string[] includeProperties, string[] excludeProperties, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Validates the specified model instance.
        //
        // Parameters:
        //   model:
        //     The model instance to validate.
        //
        // Returns:
        //     true if the model validation is successful; otherwise, false.
        protected internal bool TryValidateModel(object model);
        //
        // Summary:
        //     Validates the specified model instance using an HTML prefix.
        //
        // Parameters:
        //   model:
        //     The model to validate.
        //
        //   prefix:
        //     The prefix to use when looking up values in the model provider.
        //
        // Returns:
        //     true if the model validation is successful; otherwise, false.
        protected internal bool TryValidateModel(object model, string prefix);
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        //
        // Exceptions:
        //   System.InvalidOperationException:
        //     The model was not successfully updated.
        protected internal void UpdateModel(TModel model) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider and a prefix.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     A prefix to use when looking up values in the value provider.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string prefix) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller object's
        //     current value provider.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string[] includeProperties) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider
        //     and a prefix.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string prefix, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider, a prefix, and included properties.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     A prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string prefix, string[] includeProperties) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider,
        //     a prefix, and a list of properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider,
        //     a prefix, and a list of properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string prefix, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the controller's current
        //     value provider, a prefix, a list of properties to exclude, and a list of
        //     properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     A prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   excludeProperties:
        //     A list of properties to explicitly exclude from the update. These are excluded
        //     even if they are listed in the includeProperties list.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) where TModel : class;
        //
        // Summary:
        //     Updates the specified model instance using values from the value provider,
        //     a prefix, a list of properties to exclude, and a list of properties to include.
        //
        // Parameters:
        //   model:
        //     The model instance to update.
        //
        //   prefix:
        //     The prefix to use when looking up values in the value provider.
        //
        //   includeProperties:
        //     A list of properties of the model to update.
        //
        //   excludeProperties:
        //     A list of properties to explicitly exclude from the update. These are excluded
        //     even if they are listed in the includeProperties parameter list.
        //
        //   valueProvider:
        //     A dictionary of values that is used to update the model.
        //
        // Type parameters:
        //   TModel:
        //     The type of the model object.
        protected internal void UpdateModel(TModel model, string prefix, string[] includeProperties, string[] excludeProperties, IValueProvider valueProvider) where TModel : class;
        //
        // Summary:
        //     Validates the specified model instance.
        //
        // Parameters:
        //   model:
        //     The model to validate.
        protected internal void ValidateModel(object model);
        //
        // Summary:
        //     Validates the specified model instance using an HTML prefix.
        //
        // Parameters:
        //   model:
        //     The model to validate.
        //
        //   prefix:
        //     The prefix to use when looking up values in the model provider.
        protected internal void ValidateModel(object model, string prefix);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object that renders a view to the response.
        //
        // Returns:
        //     The view result that renders a view to the response.
        protected internal ViewResult View();
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object that renders the specified System.Web.Mvc.IView
        //     object.
        //
        // Parameters:
        //   view:
        //     The view that is rendered to the response.
        //
        // Returns:
        //     The view result.
        protected internal ViewResult View(IView view);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object by using the model that renders
        //     a view to the response.
        //
        // Parameters:
        //   model:
        //     The model that is rendered by the view.
        //
        // Returns:
        //     The view result.
        protected internal ViewResult View(object model);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object by using the view name that renders
        //     a view.
        //
        // Parameters:
        //   viewName:
        //     The name of the view that is rendered to the response.
        //
        // Returns:
        //     The view result.
        protected internal ViewResult View(string viewName);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object that renders the specified System.Web.Mvc.IView
        //     object.
        //
        // Parameters:
        //   view:
        //     The view that is rendered to the response.
        //
        //   model:
        //     The model that is rendered by the view.
        //
        // Returns:
        //     The view result.
        protected internal virtual ViewResult View(IView view, object model);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object by using the view name and model
        //     that renders a view to the response.
        //
        // Parameters:
        //   viewName:
        //     The name of the view that is rendered to the response.
        //
        //   model:
        //     The model that is rendered by the view.
        //
        // Returns:
        //     The view result.
        protected internal ViewResult View(string viewName, object model);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object using the view name and master-page
        //     name that renders a view to the response.
        //
        // Parameters:
        //   viewName:
        //     The name of the view that is rendered to the response.
        //
        //   masterName:
        //     The name of the master page or template to use when the view is rendered.
        //
        // Returns:
        //     The view result.
        protected internal ViewResult View(string viewName, string masterName);
        //
        // Summary:
        //     Creates a System.Web.Mvc.ViewResult object using the view name, master-page
        //     name, and model that renders a view.
        //
        // Parameters:
        //   viewName:
        //     The name of the view that is rendered to the response.
        //
        //   masterName:
        //     The name of the master page or template to use when the view is rendered.
        //
        //   model:
        //     The model that is rendered by the view.
        //
        // Returns:
        //     The view result.
        protected internal virtual ViewResult View(string viewName, string masterName, object model);
阅读(1450) | 评论(0) | 转发(0) |
0

上一篇:MvC(1)

下一篇:Using an IoC Container

给主人留下些什么吧!~~