ASP.NET MVC:UrlHelper.cs
ylbtech-funcation-Utility: ASP.NET MVC:UrlHelper.cs |
充当表示 ASP.NET Razor 页的类的基类。
1.UrlHelper 类返回顶部 |
1-1、
#region 程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 // D:\work-XNY\XnyQcWeb\DS.XnyQc.Web\bin\System.Web.Mvc.dll #endregion using System.Web.Routing; namespace System.Web.Mvc { public class UrlHelper { public UrlHelper(); public UrlHelper(RequestContext requestContext); public UrlHelper(RequestContext requestContext, RouteCollection routeCollection); public RequestContext RequestContext { get; } public RouteCollection RouteCollection { get; } public static string GenerateContentUrl(string contentPath, HttpContextBase httpContext); public static string GenerateUrl(string routeName, string actionName, string controllerName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, RouteCollection routeCollection, RequestContext requestContext, bool includeImplicitMvcValues); public static string GenerateUrl(string routeName, string actionName, string controllerName, RouteValueDictionary routeValues, RouteCollection routeCollection, RequestContext requestContext, bool includeImplicitMvcValues); public virtual string Action(string actionName, string controllerName, object routeValues); public virtual string Action(string actionName, string controllerName); public virtual string Action(string actionName); public virtual string Action(string actionName, RouteValueDictionary routeValues); public virtual string Action(); public virtual string Action(string actionName, object routeValues); public virtual string Action(string actionName, string controllerName, RouteValueDictionary routeValues, string protocol, string hostName); public virtual string Action(string actionName, string controllerName, object routeValues, string protocol); public virtual string Action(string actionName, string controllerName, RouteValueDictionary routeValues, string protocol); public virtual string Action(string actionName, string controllerName, RouteValueDictionary routeValues); public virtual string Content(string contentPath); public virtual string Encode(string url); public virtual string HttpRouteUrl(string routeName, object routeValues); public virtual string HttpRouteUrl(string routeName, RouteValueDictionary routeValues); public virtual bool IsLocalUrl(string url); public virtual string RouteUrl(object routeValues); public virtual string RouteUrl(RouteValueDictionary routeValues); public virtual string RouteUrl(string routeName); public virtual string RouteUrl(string routeName, object routeValues); public virtual string RouteUrl(string routeName, RouteValueDictionary routeValues); public virtual string RouteUrl(string routeName, object routeValues, string protocol); public virtual string RouteUrl(string routeName, RouteValueDictionary routeValues, string protocol, string hostName); } }
1-2、
2.返回顶部 |
3.返回顶部 |
4.返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |