Export (0) Print
Expand All

BundleCollection Class

.NET Framework 4.5

Contains and manages the set of registered Bundle objects in an ASP.NET application.

System.Object
  System.Web.Optimization.BundleCollection

Namespace:  System.Web.Optimization
Assembly:  System.Web.Optimization (in System.Web.Optimization.dll)

public class BundleCollection : IEnumerable<Bundle>, 
	IEnumerable

The BundleCollection type exposes the following members.

  NameDescription
Public methodBundleCollectionInitializes a new instance of the BundleCollection class.
Top

  NameDescription
Public propertyCountGets the count of registered bundles in the collection.
Public propertyDirectoryFilterGets a list of file patterns which are ignored when including files using wildcards or substitution tokens.
Public propertyFileExtensionReplacementListGets the file extension replacement list.
Public propertyFileSetOrderListGets a list that specifies default file orderings to use for files in the registered bundles.
Public propertyIgnoreListGets the list of files to ignore.
Public propertyUseCdnGets or sets whether the collection will try to use CdnPath if specified.
Top

  NameDescription
Public methodAddAdds a bundle to the collection.
Public methodStatic memberAddDefaultFileExtensionReplacementsAdds the default file extension replacements for common conventions.
Public methodStatic memberAddDefaultFileOrderingsAdds default file order specifications to use with bundles in the collection.
Public methodStatic memberAddDefaultIgnorePatternsAdds the default file ignore patterns.
Public methodClearRemoves all bundles from the collection.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBundleForReturns a bundle in the collection using the specified virtual path.
Protected methodGetEnumeratorReturns the bundle enumerator.
Public methodGetHashCode (Inherited from Object.)
Public methodGetRegisteredBundlesReturns the collection of all registered bundles.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveRemoves a bundle from the collection.
Public methodResetAllClears the bundles and resets all the defaults.
Public methodResolveBundleUrl(String)Returns the bundle URL for the specified virtual path.
Public methodResolveBundleUrl(String, Boolean)Returns the bundle URL for the specified virtual path, including a content hash if requested.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable<Bundle>.GetEnumeratorReturns an enumerator that can be used to iterate through the collection.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that can be used to iterate through the collection.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft