当前位置: 首页>>代码示例>>C#>>正文


C# AreaRegistrationContext.MapLowercaseDashedRoute方法代码示例

本文整理汇总了C#中System.Web.Mvc.AreaRegistrationContext.MapLowercaseDashedRoute方法的典型用法代码示例。如果您正苦于以下问题:C# AreaRegistrationContext.MapLowercaseDashedRoute方法的具体用法?C# AreaRegistrationContext.MapLowercaseDashedRoute怎么用?C# AreaRegistrationContext.MapLowercaseDashedRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Web.Mvc.AreaRegistrationContext的用法示例。


在下文中一共展示了AreaRegistrationContext.MapLowercaseDashedRoute方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "Reports_default",
         "Reports/{controller}/{action}",
         new { controller = "Home", action = "Index" }, new[] { typeof(ExportNotificationsController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:7,代码来源:ReportsAreaRegistration.cs

示例2: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context) 
 {
     context.MapLowercaseDashedRoute("AdminImportNotificationMovements_default",
         "Admin-Import-Notification-Movements/{id}/{controller}/{action}",
         new { action = "Index", controller = "Home" },
         new[] { typeof(CaptureController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:7,代码来源:AdminImportNotificationMovementsAreaRegistration.cs

示例3: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(name: "AdminExportNotificationMovements_default",
         url: "Admin-Export-Notification-Movements/{id}/{controller}/{action}",
         defaults: new { action = "Index", controller = "Home" },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:7,代码来源:AdminNotificationMovementsAreaRegistration.cs

示例4: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context) 
 {
     context.MapLowercaseDashedRoute(
         "FinancialGuarantee_default",
         "Financial-Guarantee/{controller}/{action}/{id}",
         new { action = "Index", id = UrlParameter.Optional },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:8,代码来源:FinancialGuaranteeAreaRegistration.cs

示例5: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "AdminExportAssessment_default",
         "Admin-Export-Assessment/{id}/{controller}/{action}",
         new { action = "Index", controller = "Home", id = UrlParameter.Optional },
         new[] { typeof(HomeController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:8,代码来源:AdminExportAssessmentAreaRegistration.cs

示例6: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         name: "AddressBook_default",
         url: "Address-Book/{controller}/{action}/{id}",
         defaults: new { action = "Index", controller = "Home", id = UrlParameter.Optional },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:8,代码来源:AddressBookAreaRegistration.cs

示例7: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context) 
 {
     context.MapLowercaseDashedRoute(
         name: "ExportMovement_default",
         url: "Export-Movement/{Id}/{controller}/{action}/{entityId}",
         defaults: new { action = "Index", controller = "Home", entityId = UrlParameter.Optional },
         namespaces: new[] { typeof(HomeController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:8,代码来源:MovementAreaRegistration.cs

示例8: RegisterArea

 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapLowercaseDashedRoute(
         "AdminExportMovement_default",
         "Admin-Export-Movement/{id}/{controller}/{action}/{entityId}",
         new { action = "Index", entityId = UrlParameter.Optional },
         new[] { typeof(InternalCaptureController).Namespace });
 }
开发者ID:EnvironmentAgency,项目名称:prsd-iws,代码行数:8,代码来源:AdminMovementAreaRegistration.cs

示例9: RegisterArea

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapLowercaseDashedRoute(
                name: "admin_producers_search",
                url: "admin/producers/find-producer",
                defaults: new { action = "Search", controller = "Producers" },
                namespaces: new[] { typeof(ProducersController).Namespace });

            context.MapLowercaseDashedRoute(
                name: "admin_charges",
                url: "admin/charge/{authority}/{action}/{id}",
                defaults: new { controller = "Charge", authority = UrlParameter.Optional, id = UrlParameter.Optional },
                namespaces: new[] { typeof(HomeController).Namespace });

            context.MapLowercaseDashedRoute(
                name: "admin_default",
                url: "admin/{controller}/{action}/{id}",
                defaults: new { action = "Index", controller = "Home", id = UrlParameter.Optional },
                namespaces: new[] { typeof(HomeController).Namespace });
        }
开发者ID:EnvironmentAgency,项目名称:prsd-weee,代码行数:20,代码来源:AdminAreaRegistration.cs


注:本文中的System.Web.Mvc.AreaRegistrationContext.MapLowercaseDashedRoute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。