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


C# BundleCollection.Remove方法代码示例

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


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

示例1: RegisterBundles

        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/Scripts/jquery")
                .Include("~/Scripts/jquery-1.*"));

            bundles.Add(new ScriptBundle("~/Scripts/jqueryui")
                .Include("~/Scripts/jquery-ui*"));

            bundles.Add(new ScriptBundle("~/Scripts/jqueryval")
                .Include("~/Scripts/jquery.unobtrusive*")
                .Include("~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/Scripts/jqgrid")
                .Include("~/Scripts/" + JqgridFolder + "/js/i18n/grid.locale-en.js")
                .Include("~/Scripts/" + JqgridFolder + "/js/jquery.jqGrid.src.js")
                .Include("~/Scripts/" + JqgridFolder + "/src/grid.loader.js*")
                );
            
            bundles.Remove(new ScriptBundle("~/Scripts/jqgridloader")
                .Include("~/Scripts/jquery.jqGrid-4.4.1/src/grid.loader.js"));
            
            bundles.Add(new ScriptBundle("~/Scripts/shjs")
                .Include("~/Scripts/SyntaxHighlighter/shCore.js")
                .Include("~/Scripts/SyntaxHighlighter/shBrushCSharp.js")
                .Include("~/Scripts/SyntaxHighlighter/shBrushJScript.js"));

            bundles.Add(new ScriptBundle("~/Scripts/jqplugins")
                .Include("~/Scripts/organictabs.jquery.js")
                .Include("~/Scripts/menu/simpleverticalmenu.js"));

            bundles.Add(new StyleBundle("~/Content/css")
                .Include("~/Content/style.css")
                .Include("~/Content/menu/simpleverticalmenu.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/uiall").Include(
                "~/Content/themes/base/jquery.ui.all.css"));

            bundles.Add(new StyleBundle("~/Scripts/css/jqgrid")
                .Include("~/Scripts/" + JqgridFolder + "/css/ui.jqgrid.css"));

            bundles.Add(new StyleBundle("~/Content/themes/jqgradientca/gca")
                .Include("~/Content/themes/jqgradientca/gradientca.css"));

            bundles.Add(new StyleBundle("~/Content/shcss")
                .Include("~/Content/SyntaxHighlighter/shCore.css")
                .Include("~/Content/SyntaxHighlighter/shThemeRDark.css"));
        }
开发者ID:nazmoonnoor,项目名称:FluentJqGrid,代码行数:61,代码来源:BundleConfig.cs

示例2: MoveBundleToEnd

 static void MoveBundleToEnd(ScriptBundle mainBundle, BundleCollection bundles)
 {
     bundles.Remove(mainBundle);
     bundles.Add(mainBundle);
 }
开发者ID:joplaal,项目名称:cassette,代码行数:5,代码来源:BundleCollectionExtensions.cs


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