Contains and manages the set of registered Bundle objects in an ASP.NET application.
Inheritance Hierarchy
System.Object
System.Web.Optimization.BundleCollection
Namespace: System.Web.Optimization
Assembly: System.Web.Optimization (in System.Web.Optimization.dll)
Syntax
'Declaration
Public Class BundleCollection _
Implements IEnumerable(Of Bundle), IEnumerable
'Usage
Dim instance As BundleCollection
public class BundleCollection : IEnumerable<Bundle>,
IEnumerable
public ref class BundleCollection : IEnumerable<Bundle^>,
IEnumerable
type BundleCollection =
class
interface IEnumerable<Bundle>
interface IEnumerable
end
public class BundleCollection implements IEnumerable<Bundle>, IEnumerable
The BundleCollection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
BundleCollection | Initializes a new instance of the BundleCollection class. |
Top
Properties
| 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. |
Top
Methods
| 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.) |
Top
Explicit Interface Implementations
| 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. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg)
.jpeg)
.gif)
.jpeg)
.jpeg)
.jpeg)