ylbtech-System.Web.Mvc.Controller.cs
1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35返回顶部
1、
#region 程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// E:\lab6\JFB_SCWeb\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll
#endregion using System.IO;
using System.Security.Principal;
using System.Text;
using System.Web.Mvc.Async;
using System.Web.Mvc.Filters;
using System.Web.Profile;
using System.Web.Routing; namespace System.Web.Mvc
{
//
// 摘要:
// 提供用于响应对 ASP.NET MVC 网站所进行的 HTTP 请求的方法。
public abstract class Controller : ControllerBase, IActionFilter, IAuthenticationFilter, IAuthorizationFilter, IDisposable, IExceptionFilter, IResultFilter, IAsyncController, IController, IAsyncManagerContainer
{
//
// 摘要:
// 初始化 System.Web.Mvc.Controller 类的新实例。
protected Controller(); //
// 摘要:
// 获取视图引擎集合。
//
// 返回结果:
// 视图引擎集合。
public ViewEngineCollection ViewEngineCollection { get; set; }
//
// 摘要:
// 表示提供服务的可替换依赖关系解析程序。默认情况下,它使用 System.Web.Mvc.DependencyResolver.CurrentCache。
public IDependencyResolver Resolver { get; set; }
//
// 摘要:
// 提供异步操作。
//
// 返回结果:
// 返回 System.Web.Mvc.Async.AsyncManager。
public AsyncManager AsyncManager { get; }
//
// 摘要:
// 获取有关单个 HTTP 请求的 HTTP 特定的信息。
//
// 返回结果:
// HTTP 上下文。
public HttpContextBase HttpContext { get; }
//
// 摘要:
// 获取包含模型状态和模型绑定验证状态的模型状态字典对象。
//
// 返回结果:
// 模型状态字典。
public ModelStateDictionary ModelState { get; }
//
// 摘要:
// 获取 HTTP 上下文配置文件。
//
// 返回结果:
// HTTP 上下文配置文件。
public ProfileBase Profile { get; }
//
// 摘要:
// 为当前 HTTP 请求获取 HttpRequestBase 对象。
//
// 返回结果:
// 请求对象。
public HttpRequestBase Request { get; }
//
// 摘要:
// 为当前 HTTP 响应获取 HttpResponseBase 对象。
//
// 返回结果:
// 当前 HTTP 响应的 HttpResponseBase 对象。
public HttpResponseBase Response { get; }
//
// 摘要:
// 为当前请求获取路由数据。
//
// 返回结果:
// 路由数据。
public RouteData RouteData { get; }
//
// 摘要:
// 获取控制器的操作调用程序。
//
// 返回结果:
// 操作调用程序。
public IActionInvoker ActionInvoker { get; set; }
//
// 摘要:
// 为当前 HTTP 请求获取 HttpSessionStateBase 对象。
//
// 返回结果:
// 当前 HTTP 请求的 HTTP 会话状态对象。
public HttpSessionStateBase Session { get; }
//
// 摘要:
// 获取提供 Web 请求处理期间使用的方法的 HttpServerUtilityBase 对象。
//
// 返回结果:
// HTTP 服务器对象。
public HttpServerUtilityBase Server { get; }
//
// 摘要:
// 获取用于使用路由来生成 URL 的 URL 帮助器对象。
//
// 返回结果:
// URL 帮助器对象。
public UrlHelper Url { get; set; }
//
// 摘要:
// 获取用于为下一个请求存储数据的临时数据提供程序对象。
//
// 返回结果:
// 临时数据提供程序。
public ITempDataProvider TempDataProvider { get; set; }
//
// 摘要:
// 为当前 HTTP 请求获取用户安全信息。
//
// 返回结果:
// 当前 HTTP 请求的用户安全信息。
public IPrincipal User { get; }
//
// 摘要:
// 获取是否禁用控制器的异步支持。
//
// 返回结果:
// 禁用控制器的异步支持,则为 true;否则为 false。
protected virtual bool DisableAsyncSupport { get; }
//
// 摘要:
// 获取或设置联编程序。
//
// 返回结果:
// 联编程序。
protected internal ModelBinderDictionary Binders { get; set; } //
// 摘要:
// 释放由 System.Web.Mvc.Controller 类的当前实例所使用的所有资源。
public void Dispose();
//
// 摘要:
// 开始执行指定的请求上下文
//
// 参数:
// requestContext:
// 请求上下文。
//
// callback:
// 异步回调。
//
// state:
// 状态。
//
// 返回结果:
// 返回一个 IAsyncController 实例。
protected virtual IAsyncResult BeginExecute(RequestContext requestContext, AsyncCallback callback, object state);
//
// 摘要:
// 开始调用当前控制器上下文中的操作。
//
// 参数:
// callback:
// 回调。
//
// state:
// 状态。
//
// 返回结果:
// 返回一个 IAsyncController 实例。
protected virtual IAsyncResult BeginExecuteCore(AsyncCallback callback, object state);
//
// 摘要:
// 创建操作调用程序。
//
// 返回结果:
// 操作调用程序。
protected virtual IActionInvoker CreateActionInvoker();
//
// 摘要:
// 创建临时数据提供程序。
//
// 返回结果:
// 临时数据提供程序。
protected virtual ITempDataProvider CreateTempDataProvider();
//
// 摘要:
// 释放非托管资源和托管资源(后者为可选项)。
//
// 参数:
// disposing:
// 若为 true,则同时释放托管资源和非托管资源;若为 false,则仅释放非托管资源。
protected virtual void Dispose(bool disposing);
//
// 摘要:
// 结束当前控制器上下文中的操作的调用。
//
// 参数:
// asyncResult:
// 异步结果。
protected virtual void EndExecute(IAsyncResult asyncResult);
//
// 摘要:
// 结束执行核心。
//
// 参数:
// asyncResult:
// 异步结果。
protected virtual void EndExecuteCore(IAsyncResult asyncResult);
//
// 摘要:
// 调用当前控制器上下文中的操作。
protected override void ExecuteCore();
//
// 摘要:
// 当请求与此控制器匹配但在此控制器中找不到任何具有指定操作名称的方法时调用。
//
// 参数:
// actionName:
// 尝试的操作的名称。
protected virtual void HandleUnknownAction(string actionName);
//
// 摘要:
// 对调用构造函数时可能不可用的数据进行初始化。
//
// 参数:
// requestContext:
// HTTP 上下文和路由数据。
protected override void Initialize(RequestContext requestContext);
//
// 摘要:
// 在调用操作方法后调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作的信息。
protected virtual void OnActionExecuted(ActionExecutedContext filterContext);
//
// 摘要:
// 在调用操作方法前调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作的信息。
protected virtual void OnActionExecuting(ActionExecutingContext filterContext);
//
// 摘要:
// 在进行授权时调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作的信息。
protected virtual void OnAuthentication(AuthenticationContext filterContext);
//
// 摘要:
// 在进行授权质询时调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作的信息。
protected virtual void OnAuthenticationChallenge(AuthenticationChallengeContext filterContext);
//
// 摘要:
// 在进行授权时调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作的信息。
protected virtual void OnAuthorization(AuthorizationContext filterContext);
//
// 摘要:
// 当操作中发生未经处理的异常时调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作的信息。
protected virtual void OnException(ExceptionContext filterContext);
//
// 摘要:
// 在执行由操作方法返回的操作结果后调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作结果的信息。
protected virtual void OnResultExecuted(ResultExecutedContext filterContext);
//
// 摘要:
// 在执行由操作方法返回的操作结果前调用。
//
// 参数:
// filterContext:
// 有关当前请求和操作结果的信息。
protected virtual void OnResultExecuting(ResultExecutingContext filterContext);
//
// 摘要:
// 使用字符串创建一个内容结果对象。
//
// 参数:
// content:
// 要写入到响应的内容。
//
// 返回结果:
// 内容结果实例。
protected internal ContentResult Content(string content);
//
// 摘要:
// 使用字符串、内容类型和内容编码创建一个内容结果对象。
//
// 参数:
// content:
// 要写入到响应的内容。
//
// contentType:
// 内容类型(MIME 类型)。
//
// contentEncoding:
// 内容编码。
//
// 返回结果:
// 内容结果实例。
protected internal virtual ContentResult Content(string content, string contentType, Encoding contentEncoding);
//
// 摘要:
// 使用字符串和内容类型创建一个内容结果对象。
//
// 参数:
// content:
// 要写入到响应的内容。
//
// contentType:
// 内容类型(MIME 类型)。
//
// 返回结果:
// 内容结果实例。
protected internal ContentResult Content(string content, string contentType);
//
// 摘要:
// 使用文件内容和文件类型创建一个 FileContentResult 对象。
//
// 参数:
// fileContents:
// 要发送到响应的二进制内容。
//
// contentType:
// 内容类型(MIME 类型)。
//
// 返回结果:
// 文件内容结果对象。
protected internal FileContentResult File(byte[] fileContents, string contentType);
//
// 摘要:
// 使用文件内容、内容类型和目标文件名创建一个 FileContentResult 对象。
//
// 参数:
// fileContents:
// 要发送到响应的二进制内容。
//
// contentType:
// 内容类型(MIME 类型)。
//
// fileDownloadName:
// 浏览器中显示的文件下载对话框内要使用的文件名。
//
// 返回结果:
// 文件内容结果对象。
protected internal virtual FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName);
//
// 摘要:
// 使用 Stream 对象和内容类型创建一个 FileStreamResult 对象。
//
// 参数:
// fileStream:
// 要发送到响应的流。
//
// contentType:
// 内容类型(MIME 类型)。
//
// 返回结果:
// 文件内容结果对象。
protected internal FileStreamResult File(Stream fileStream, string contentType);
//
// 摘要:
// 使用 Stream 对象、内容类型和目标文件名创建一个 FileStreamResult 对象。
//
// 参数:
// fileStream:
// 要发送到响应的流。
//
// contentType:
// 内容类型(MIME 类型)
//
// fileDownloadName:
// 浏览器中显示的文件下载对话框内要使用的文件名。
//
// 返回结果:
// 文件流结果对象。
protected internal virtual FileStreamResult File(Stream fileStream, string contentType, string fileDownloadName);
//
// 摘要:
// 使用文件名和内容类型创建一个 FilePathResult 对象。
//
// 参数:
// fileName:
// 要发送到响应的文件的路径。
//
// contentType:
// 内容类型(MIME 类型)。
//
// 返回结果:
// 文件流结果对象。
protected internal FilePathResult File(string fileName, string contentType);
//
// 摘要:
// 使用文件名、内容类型和文件下载名创建一个 FilePathResult 对象。
//
// 参数:
// fileName:
// 要发送到响应的文件的路径。
//
// contentType:
// 内容类型(MIME 类型)。
//
// fileDownloadName:
// 浏览器中显示的文件下载对话框内要使用的文件名。
//
// 返回结果:
// 文件流结果对象。
protected internal virtual FilePathResult File(string fileName, string contentType, string fileDownloadName);
//
// 摘要:
// 返回 System.Web.Mvc.HttpNotFoundResult 类的实例。
//
// 返回结果:
// System.Web.Mvc.HttpNotFoundResult 类的实例。
protected internal HttpNotFoundResult HttpNotFound();
//
// 摘要:
// 返回 System.Web.Mvc.HttpNotFoundResult 类的实例。
//
// 参数:
// statusDescription:
// 状态说明。
//
// 返回结果:
// System.Web.Mvc.HttpNotFoundResult 类的实例。
protected internal virtual HttpNotFoundResult HttpNotFound(string statusDescription);
//
// 摘要:
// 创建一个 System.Web.Mvc.JavaScriptResult 对象。
//
// 参数:
// script:
// 要在客户端上运行的 JavaScript 代码
//
// 返回结果:
// 将脚本写入到响应的 System.Web.Mvc.JavaScriptResult 对象。
protected internal virtual JavaScriptResult JavaScript(string script);
//
// 摘要:
// 创建一个将指定对象序列化为 JavaScript 对象表示法 (JSON) 格式的 System.Web.Mvc.JsonResult 对象。
//
// 参数:
// data:
// 要序列化的 JavaScript 对象图。
//
// contentType:
// 内容类型(MIME 类型)。
//
// 返回结果:
// 将指定对象序列化为 JSON 格式的 JSON 结果对象。
protected internal JsonResult Json(object data, string contentType);
//
// 摘要:
// 创建一个将指定对象序列化为 JavaScript 对象表示法 (JSON) 格式的 System.Web.Mvc.JsonResult 对象。
//
// 参数:
// data:
// 要序列化的 JavaScript 对象图。
//
// contentType:
// 内容类型(MIME 类型)。
//
// contentEncoding:
// 内容编码。
//
// 返回结果:
// 将指定对象序列化为 JSON 格式的 JSON 结果对象。
protected internal virtual JsonResult Json(object data, string contentType, Encoding contentEncoding);
//
// 摘要:
// 创建 JsonResult 对象,该对象使用指定 JSON 请求行为将指定对象序列化为 JavaScript 对象表示法 (JSON) 格式。
//
// 参数:
// data:
// 要序列化的 JavaScript 对象图。
//
// behavior:
// JSON 请求行为。
//
// 返回结果:
// 将指定对象序列化为 JSON 格式的结果对象。
protected internal JsonResult Json(object data, JsonRequestBehavior behavior);
//
// 摘要:
// 创建 System.Web.Mvc.JsonResult 对象,该对象使用指定内容类型和 JSON 请求行为将指定对象序列化为 JavaScript 对象表示法
// (JSON) 格式。
//
// 参数:
// data:
// 要序列化的 JavaScript 对象图。
//
// contentType:
// 内容类型(MIME 类型)。
//
// behavior:
// JSON 请求行为
//
// 返回结果:
// 将指定对象序列化为 JSON 格式的结果对象。
protected internal JsonResult Json(object data, string contentType, JsonRequestBehavior behavior);
//
// 摘要:
// 创建 System.Web.Mvc.JsonResult 对象,该对象使用内容类型、内容编码和 JSON 请求行为将指定对象序列化为 JavaScript
// 对象表示法 (JSON) 格式。
//
// 参数:
// data:
// 要序列化的 JavaScript 对象图。
//
// contentType:
// 内容类型(MIME 类型)。
//
// contentEncoding:
// 内容编码。
//
// behavior:
// JSON 请求行为
//
// 返回结果:
// 将指定对象序列化为 JSON 格式的结果对象。
protected internal virtual JsonResult Json(object data, string contentType, Encoding contentEncoding, JsonRequestBehavior behavior);
//
// 摘要:
// 创建一个将指定对象序列化为 JavaScript 对象表示法 (JSON) 的 System.Web.Mvc.JsonResult 对象。
//
// 参数:
// data:
// 要序列化的 JavaScript 对象图。
//
// 返回结果:
// 将指定对象序列化为 JSON 格式的 JSON 结果对象。在执行此方法所准备的结果对象时,ASP.NET MVC 框架会将该对象写入响应。
protected internal JsonResult Json(object data);
//
// 摘要:
// 创建一个呈现分部视图的 System.Web.Mvc.PartialViewResult 对象。
//
// 返回结果:
// 分部视图结果对象。
protected internal PartialViewResult PartialView();
//
// 摘要:
// 使用指定的模型创建一个呈现分部视图的 System.Web.Mvc.PartialViewResult 对象。
//
// 参数:
// model:
// 分部视图呈现的模型
//
// 返回结果:
// 分部视图结果对象。
protected internal PartialViewResult PartialView(object model);
//
// 摘要:
// 使用指定的视图名称和模型创建一个呈现分部视图的 System.Web.Mvc.PartialViewResult 对象。
//
// 参数:
// viewName:
// 为响应呈现的视图的名称。
//
// model:
// 分部视图呈现的模型
//
// 返回结果:
// 分部视图结果对象。
protected internal virtual PartialViewResult PartialView(string viewName, object model);
//
// 摘要:
// 使用指定的视图名称创建一个呈现分部视图的 System.Web.Mvc.PartialViewResult 对象。
//
// 参数:
// viewName:
// 为响应呈现的视图的名称。
//
// 返回结果:
// 分部视图结果对象。
protected internal PartialViewResult PartialView(string viewName);
//
// 摘要:
// 创建一个重定向到指定的 URL 的 System.Web.Mvc.RedirectResult 对象。
//
// 参数:
// url:
// 要重定向到的 URL。
//
// 返回结果:
// 重定向结果对象。
protected internal virtual RedirectResult Redirect(string url);
//
// 摘要:
// 返回 System.Web.Mvc.RedirectResult 类的实例,其 Permanent 属性设置为 true。
//
// 参数:
// url:
// 要重定向到的 URL。
//
// 返回结果:
// System.Web.Mvc.RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal virtual RedirectResult RedirectPermanent(string url);
//
// 摘要:
// 使用操作名称重定向到指定的操作。
//
// 参数:
// actionName:
// 操作的名称。
//
// 返回结果:
// 重定向结果对象。
protected internal RedirectToRouteResult RedirectToAction(string actionName);
//
// 摘要:
// 使用操作名称和路由值重定向到指定的操作。
//
// 参数:
// actionName:
// 操作的名称。
//
// routeValues:
// 路由的参数。
//
// 返回结果:
// 重定向结果对象。
protected internal RedirectToRouteResult RedirectToAction(string actionName, object routeValues);
//
// 摘要:
// 使用操作名称和路由字典重定向到指定的操作。
//
// 参数:
// actionName:
// 操作的名称。
//
// routeValues:
// 路由的参数。
//
// 返回结果:
// 重定向结果对象。
protected internal RedirectToRouteResult RedirectToAction(string actionName, RouteValueDictionary routeValues);
//
// 摘要:
// 使用操作名称和控制器名称重定向到指定的操作。
//
// 参数:
// actionName:
// 操作的名称。
//
// controllerName:
// 控制器的名称。
//
// 返回结果:
// 重定向结果对象。
protected internal RedirectToRouteResult RedirectToAction(string actionName, string controllerName);
//
// 摘要:
// 使用操作名称、控制器名称和路由字典重定向到指定的操作。
//
// 参数:
// actionName:
// 操作的名称。
//
// controllerName:
// 控制器的名称。
//
// routeValues:
// 路由的参数。
//
// 返回结果:
// 重定向结果对象。
protected internal RedirectToRouteResult RedirectToAction(string actionName, string controllerName, object routeValues);
//
// 摘要:
// 使用操作名称、控制器名称和路由值重定向到指定的操作。
//
// 参数:
// actionName:
// 操作的名称。
//
// controllerName:
// 控制器的名称。
//
// routeValues:
// 路由的参数。
//
// 返回结果:
// 重定向结果对象。
protected internal virtual RedirectToRouteResult RedirectToAction(string actionName, string controllerName, RouteValueDictionary routeValues);
//
// 摘要:
// 返回使用指定的操作名称并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult 类的实例。
//
// 参数:
// actionName:
// 操作名称。
//
// 返回结果:
// 使用指定的操作名称、控制器名称和路由值返回的 System.Web.Mvc.RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal RedirectToRouteResult RedirectToActionPermanent(string actionName);
//
// 摘要:
// 返回使用指定的操作名称和路由值并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult 类的实例。
//
// 参数:
// actionName:
// 操作名称。
//
// routeValues:
// 路由值。
//
// 返回结果:
// 返回使用指定的操作名称和路由值并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult 类的实例。
protected internal RedirectToRouteResult RedirectToActionPermanent(string actionName, object routeValues);
//
// 摘要:
// 返回使用指定的操作名称和控制器名称并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult 类的实例。
//
// 参数:
// actionName:
// 操作名称。
//
// controllerName:
// 控制器名称。
//
// 返回结果:
// 使用指定的操作名称和控制器名称返回的 System.Web.Mvc.RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal RedirectToRouteResult RedirectToActionPermanent(string actionName, string controllerName);
//
// 摘要:
// 返回使用指定的操作名称、控制器名称和路由值并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult
// 类的实例。
//
// 参数:
// actionName:
// 操作名称。
//
// controllerName:
// 控制器名称。
//
// routeValues:
// 路由值。
//
// 返回结果:
// 使用指定的操作名称、控制器名称和路由值返回的 System.Web.Mvc.RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal RedirectToRouteResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues);
//
// 摘要:
// 返回使用指定的操作名称、控制器名称和路由值并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult
// 类的实例。
//
// 参数:
// actionName:
// 操作名称。
//
// controllerName:
// 控制器名称。
//
// routeValues:
// 路由值。
//
// 返回结果:
// 使用指定的操作名称、控制器名称和路由值返回的 System.Web.Mvc.RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal virtual RedirectToRouteResult RedirectToActionPermanent(string actionName, string controllerName, RouteValueDictionary routeValues);
//
// 摘要:
// 返回使用指定的操作名称和路由值并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult 类的实例。
//
// 参数:
// actionName:
// 操作名称。
//
// routeValues:
// 路由值。
//
// 返回结果:
// 返回使用指定的操作名称和路由值并且 Permanent 属性设置为 true 的 System.Web.Mvc.RedirectResult 类的实例。
protected internal RedirectToRouteResult RedirectToActionPermanent(string actionName, RouteValueDictionary routeValues);
//
// 摘要:
// 使用指定的路由值重定向到指定的路由。
//
// 参数:
// routeValues:
// 路由的参数。
//
// 返回结果:
// “重定向到路由”结果对象。
protected internal RedirectToRouteResult RedirectToRoute(object routeValues);
//
// 摘要:
// 使用路由字典重定向到指定的路由。
//
// 参数:
// routeValues:
// 路由的参数。
//
// 返回结果:
// “重定向到路由”结果对象。
protected internal RedirectToRouteResult RedirectToRoute(RouteValueDictionary routeValues);
//
// 摘要:
// 使用路由名称重定向到指定的路由。
//
// 参数:
// routeName:
// 路由的名称。
//
// 返回结果:
// “重定向到路由”结果对象。
protected internal RedirectToRouteResult RedirectToRoute(string routeName);
//
// 摘要:
// 使用路由名称和路由值重定向到指定的路由。
//
// 参数:
// routeName:
// 路由的名称。
//
// routeValues:
// 路由的参数。
//
// 返回结果:
// “重定向到路由”结果对象。
protected internal RedirectToRouteResult RedirectToRoute(string routeName, object routeValues);
//
// 摘要:
// 使用路由名称和路由字典重定向到指定的路由。
//
// 参数:
// routeName:
// 路由的名称。
//
// routeValues:
// 路由的参数。
//
// 返回结果:
// “重定向到路由”结果对象。
protected internal virtual RedirectToRouteResult RedirectToRoute(string routeName, RouteValueDictionary routeValues);
//
// 摘要:
// 返回使用指定的路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
//
// 参数:
// routeValues:
// 路由值。
//
// 返回结果:
// 使用指定的路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
protected internal RedirectToRouteResult RedirectToRoutePermanent(RouteValueDictionary routeValues);
//
// 摘要:
// 返回使用指定的路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
//
// 参数:
// routeValues:
// 路由名称。
//
// 返回结果:
// 返回 RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal RedirectToRouteResult RedirectToRoutePermanent(object routeValues);
//
// 摘要:
// 返回使用指定的路由名称并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
//
// 参数:
// routeName:
// 路由名称。
//
// 返回结果:
// 返回使用指定的路由名称并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
protected internal RedirectToRouteResult RedirectToRoutePermanent(string routeName);
//
// 摘要:
// 返回使用指定的路由名称和路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
//
// 参数:
// routeName:
// 路由名称。
//
// routeValues:
// 路由值。
//
// 返回结果:
// 使用指定的路由名称和路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
protected internal RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues);
//
// 摘要:
// 返回使用指定的路由名称和路由值并且其 Permanent 属性设置为 true 的 RedirectResult 类的实例。
//
// 参数:
// routeName:
// 路由名称。
//
// routeValues:
// 路由值。
//
// 返回结果:
// RedirectResult 类的实例,其 Permanent 属性设置为 true。
protected internal virtual RedirectToRouteResult RedirectToRoutePermanent(string routeName, RouteValueDictionary routeValues);
//
// 摘要:
// 使用来自控制器的当前值提供程序的值、前缀和包含的属性更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
//
// 异常:
// T:System.ArgumentNullException:
// model 参数或 ValueProvider 属性为 null。
protected internal bool TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
//
// 异常:
// T:System.ArgumentNullException:
// model 参数或 ValueProvider 属性为 null。
protected internal bool TryUpdateModel<TModel>(TModel model) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值和前缀更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
//
// 异常:
// T:System.ArgumentNullException:
// model 参数或 ValueProvider 属性为 null。
protected internal bool TryUpdateModel<TModel>(TModel model, string prefix) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值和包含的属性更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
protected internal bool TryUpdateModel<TModel>(TModel model, string[] includeProperties) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// excludeProperties:
// 要从该更新中显式排除的属性列表。即使 includeProperties 参数列表中列出了这些属性,也会将其排除。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
protected internal bool TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// excludeProperties:
// 要从该更新中显式排除的属性列表。即使 includeProperties 参数列表中列出了这些属性,也会将其排除。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
//
// 异常:
// T:System.ArgumentNullException:
// model 参数或 ValueProvider 属性为 null。
protected internal bool TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
protected internal bool TryUpdateModel<TModel>(TModel model, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 一个要更新的模型的属性列表。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
protected internal bool TryUpdateModel<TModel>(TModel model, string prefix, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
protected internal bool TryUpdateModel<TModel>(TModel model, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值、前缀和包含的属性更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
//
// 返回结果:
// 如果更新已成功,则为 true;否则为 false。
protected internal bool TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用 HTML 前缀验证指定的模型实例。
//
// 参数:
// model:
// 要验证的模型。
//
// prefix:
// 在模型提供程序中查找值时要使用的前缀。
//
// 返回结果:
// 如果模型验证已成功,则为 true;否则为 false。
protected internal bool TryValidateModel(object model, string prefix);
//
// 摘要:
// 验证指定的模型实例。
//
// 参数:
// model:
// 要验证的模型。
//
// 返回结果:
// 如果模型验证已成功,则为 true;否则为 false。
protected internal bool TryValidateModel(object model);
//
// 摘要:
// 使用来自值提供程序的值、前缀和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 一个要更新的模型的属性列表。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string prefix, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值和前缀更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string prefix) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值、前缀和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值、前缀和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// excludeProperties:
// 要从该更新中显式排除的属性列表。即使 includeProperties 参数列表中列出了这些属性,也会将其排除。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自值提供程序的值更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// valueProvider:
// 可用于更新模型的值字典。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, IValueProvider valueProvider) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值、前缀和包含的属性更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string prefix, string[] includeProperties) where TModel : class;
//
// 摘要:
// 使用来自控制器的当前值提供程序的值、前缀、要排除的属性列表和要包含的属性列表更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// prefix:
// 在值提供程序中查找值时要使用的前缀。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// excludeProperties:
// 要从该更新中显式排除的属性列表。即使 includeProperties 列表中列出了这些属性,也会将其排除。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) where TModel : class;
//
// 摘要:
// 使用来自控制器对象的当前值提供程序的值更新指定的模型实例。
//
// 参数:
// model:
// 要更新的模型实例。
//
// includeProperties:
// 一个要更新的模型的属性列表。
//
// 类型参数:
// TModel:
// 模型对象的类型。
protected internal void UpdateModel<TModel>(TModel model, string[] includeProperties) where TModel : class;
//
// 摘要:
// 使用 HTML 前缀验证指定的模型实例。
//
// 参数:
// model:
// 要验证的模型。
//
// prefix:
// 在模型提供程序中查找值时要使用的前缀。
protected internal void ValidateModel(object model, string prefix);
//
// 摘要:
// 验证指定的模型实例。
//
// 参数:
// model:
// 要验证的模型。
protected internal void ValidateModel(object model);
//
// 摘要:
// 创建一个呈现指定的 IView 对象的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// viewName:
// 为响应呈现的视图。
//
// model:
// 视图呈现的模型。
//
// 返回结果:
// 视图结果。
protected internal ViewResult View(string viewName, object model);
//
// 摘要:
// 使用视图名称和母版页名称创建一个将视图呈现给响应的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// viewName:
// 为响应呈现的视图的名称。
//
// masterName:
// 在呈现视图时要使用的母版页或模板的名称。
//
// 返回结果:
// 视图结果。
protected internal ViewResult View(string viewName, string masterName);
//
// 摘要:
// 创建一个呈现指定的 IView 对象的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// view:
// 为响应呈现的视图。
//
// 返回结果:
// 视图结果。
protected internal ViewResult View(IView view);
//
// 摘要:
// 使用模型创建一个将视图呈现给响应的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// model:
// 视图呈现的模型。
//
// 返回结果:
// 视图结果。
protected internal ViewResult View(object model);
//
// 摘要:
// 创建一个将视图呈现给响应的 System.Web.Mvc.ViewResult 对象。
//
// 返回结果:
// 将视图呈现给响应的 System.Web.Mvc.Controller.View 结果。
protected internal ViewResult View();
//
// 摘要:
// 创建一个呈现指定的 System.Web.Mvc.IView 对象的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// view:
// 为响应呈现的视图。
//
// model:
// 视图呈现的模型。
//
// 返回结果:
// 视图结果。
protected internal virtual ViewResult View(IView view, object model);
//
// 摘要:
// 使用视图名称、母版页名称和模型创建一个呈现视图的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// viewName:
// 为响应呈现的视图的名称。
//
// masterName:
// 在呈现视图时要使用的母版页或模板的名称。
//
// model:
// 视图呈现的模型。
//
// 返回结果:
// 视图结果。
protected internal virtual ViewResult View(string viewName, string masterName, object model);
//
// 摘要:
// 使用视图名称创建一个呈现视图的 System.Web.Mvc.ViewResult 对象。
//
// 参数:
// viewName:
// 为响应呈现的视图的名称。
//
// 返回结果:
// 视图结果。
protected internal ViewResult View(string viewName);
}
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

System.Web.Mvc.Controller.cs的更多相关文章

  1. ERROR: “System.Web.Mvc.Controller.File(string, string, string)”是一个“方法”

    ERROR: “System.Web.Mvc.Controller.File(string, string, string)”是一个“方法”,这在给定的上下文中无效 这是一个与Controller.F ...

  2. System.Web.Mvc.HttpGetAttribute.cs

    ylbtech-System.Web.Mvc.HttpGetAttribute.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, P ...

  3. System.Web.Mvc.RouteAttribute.cs

    ylbtech-System.Web.Mvc.RouteAttribute.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, Pub ...

  4. System.Web.Mvc.HttpPostAttribute.cs

    ylbtech-System.Web.Mvc.HttpPostAttribute.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, ...

  5. System.Web.Mvc.RoutePrefixAttribute.cs

    ylbtech-System.Web.Mvc.RoutePrefixAttribute.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutra ...

  6. System.Web.Mvc.JavaScriptResult.cs

    ylbtech-System.Web.Mvc.JavaScriptResult.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, P ...

  7. System.Web.Mvc.ActionResult.cs

    ylbtech-System.Web.Mvc.ActionResult.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, Publi ...

  8. System.Web.Mvc.IAuthorizationFilter.cs

    ylbtech-System.Web.Mvc.IAuthorizationFilter.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutra ...

  9. System.Web.Mvc.IActionFilter.cs

    ylbtech-System.Web.Mvc.IActionFilter.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, Publ ...

随机推荐

  1. android是32-bit系统还是64-bit系统

    转自:http://www.cnblogs.com/pengwang/archive/2013/03/11/2954496.html 电脑CPU分32位和64位,这个我们都知道.用了这么长时间的and ...

  2. python+selenium遍历某一个标签中的内容

    一.python+selenium遍历某一个标签中的内容 举个例子:我要获取列表标签<li></li>的内容 根据python+selenium定位到列表整体,使用for循环获 ...

  3. eclipse 上Svn将项目从分支合并到主干的方法

    eclipse svn 分支合并到主干   最近公司产品上线,整个系统架构包含有七八个子系统,并且子系统都是集群部署.所以每次升级维护都要确保尽可能不出问题.因为整个系统刚上线不久,意味着新系统不定期 ...

  4. Delphi ADOQuery

    Delphi ADOQuery procedure TForm1.Button1Click(Sender: TObject); var A: Array of String;//定义动态数组 Inde ...

  5. NX二次开发-UFUN读取图纸尺寸的值UF_DRF_ask_dimension_text

    今天发现UF_DRF_ask_dim_info这个函数不能读带附件文本的尺寸,有附加文本dim_info->text_info->text->full_string;读出来的是附加文 ...

  6. python入门 类的继承和聚合(五)

    继承 class Rocket: def __init__(self, name, distance): self.name = name self.distance = distance def l ...

  7. error-Java-web:20190618

    ylbtech-error-Java-web:20190618 1.返回顶部 1. org.springframework.beans.factory.UnsatisfiedDependencyExc ...

  8. web应用本质

    web应用的本质 在之前学习的socket网络编程中,是基于: 架构:C/S架构 协议:TCP/UDP协议 运行在OSI七层模型中的传输层 那么在web应用中,是基于: 架构:B/S架构 协议:Htt ...

  9. hexo中加入点击出现小红心的特效会导致无法双击选中和连续点击三次选中一整行的操作

    文章目录 问题描述 解决 个人博客:https://mmmmmm.me 源码:https://github.com/dataiyangu/dataiyangu.github.io 问题描述 如题,我们 ...

  10. spark-sql性能优化之——动态实现多个列应用同一个函数

    在对一个dataframe的多个列实现应用同一个函数时,是否能动态的指定? 例如: 对A,B,C三列实现分组统计 1.初始化spark,构建DF val spark = SparkSession.bu ...