System.Web.Optimization Namespace

The System.Web.Optimization namespace includes classes that support Content Delivery Networks (CDN) and the process of optimizing JavaScript and cascading style sheet (CSS) files in a website to reduce file size and improve page performance. The classes in this namespace enable developers to carry out bundling and minification tasks to optimize their JavaScript and CSS files.

Public classBundleRepresents a list of file references to be bundled together as a single resource.
Public classBundleCollectionContains and manages the set of registered Bundle objects in an ASP.NET application.
Public classBundleContextEncapsulates the info needed to process a bundle request
Public classBundleDefinitionRepresents a bundle definition as specified by the bundle manifest.
Public classBundleFileRepresents a single file within a bundle.
Public classBundleFileSetOrderingEncapsulates a named set of files with relative orderings, for example jquery or modernizer.
Public classBundleManifest Represents the XML configuration to configure the Bundles bundle collection.
Public classBundleModule Represents a module that enables bundling to intercept requests to bundle URLs.
Public classBundleResolverRepresents a class that determine if a script reference is a bundle, and what it contains to prevent duplicate script references.
Public classBundleResponseEncapsulates the response data that will be sent for a bundle request.
Public classBundleTable Static holder class for the default bundle collection.
Public classCssMinify Represents a IBundleTransform that does CSS minification.
Public classCssRewriteUrlTransformRewrites urls to be absolute so assets will still be found after bundling.
Public classDefaultBundleBuilderRepresents the default logic which combines files in the bundle.
Public classDefaultBundleOrdererProvides default IBundleOrderer implementation which orders files in a bundle using FileSetOrderList.
Public classDynamicFolderBundleRepresents a Bundle object that ASP.NET creates from a folder that contains files of the same type.
Public classFileExtensionReplacementListRepresents a set of file extensions that will be used to select different files based on the OptimizationMode.
Public classIgnoreListA list of filename patterns to be ignored and thereby excluded from bundles.
Public classJsMinifyRepresents a BundleTransform that does CSS Minification.
Public classOptimizationSettingsConfiguration settings used by the Optimizer class to generate bundle responses outside of ASP.NET applications.
Public classOptimizerRepresents a standalone class for generating bundle responses outside of ASP.NET
Public classPreApplicationStartCode Hooks up the BundleModule
Public classScriptBundleRepresents a bundle that does Js Minification.
Public classScriptsRepresents a type that allows queuing and rendering script elements.
Public classStyleBundle Represents a bundle that does CSS minification.
Public classStylesRepresents a helper class for rendering link elements.

Public interfaceIBundleBuilderSpecifies the building of the bundle from the individual file contents.
Public interfaceIBundleOrdererDefines methods for ordering files within a Bundle.
Public interfaceIBundleResolverRepresents an interface used to query the BundleCollection for metadata.
Public interfaceIBundleTransformDefines a method that transforms the files in a BundleResponse object.
Public interfaceIItemTransformDefines the method that transforms the item in a bundle response object.

Public enumerationOptimizationMode OptimizationMode used by IgnoreList and FileExtensionReplacement.