BundleCollection Class
Contains and manages the set of registered Bundle objects in an ASP.NET application.
Assembly: System.Web.Optimization (in System.Web.Optimization.dll)
The BundleCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the count of registered bundles in the collection. |
![]() | DirectoryFilter | Gets a list of file patterns which are ignored when including files using wildcards or substitution tokens. |
![]() | FileExtensionReplacementList | Gets the file extension replacement list. |
![]() | FileSetOrderList | Gets a list that specifies default file orderings to use for files in the registered bundles. |
![]() | IgnoreList | Gets the list of files to ignore. |
![]() | UseCdn | Gets or sets whether the collection will try to use CdnPath if specified. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds a bundle to the collection. |
![]() ![]() | AddDefaultFileExtensionReplacements | Adds the default file extension replacements for common conventions. |
![]() ![]() | AddDefaultFileOrderings | Adds default file order specifications to use with bundles in the collection. |
![]() ![]() | AddDefaultIgnorePatterns | Adds the default file ignore patterns. |
![]() | Clear | Removes all bundles from the collection. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBundleFor | Returns a bundle in the collection using the specified virtual path. |
![]() | GetEnumerator | Returns the bundle enumerator. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetRegisteredBundles | Returns the collection of all registered bundles. |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove | Removes a bundle from the collection. |
![]() | ResetAll | Clears the bundles and resets all the defaults. |
![]() | ResolveBundleUrl(String) | Returns the bundle URL for the specified virtual path. |
![]() | ResolveBundleUrl(String, Boolean) | Returns the bundle URL for the specified virtual path, including a content hash if requested. |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable(Bundle).GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |
Show:
