1 out of 4 rated this helpful - Rate this topic

Bundle Class

.NET Framework 4.5

Represents a list of file references to be bundled together as a single resource.

Namespace:  System.Web.Optimization
Assembly:  System.Web.Optimization (in System.Web.Optimization.dll)
public class Bundle

The Bundle type exposes the following members.

  NameDescription
Protected methodBundle()Initializes a new instance of the Bundle class.
Public methodBundle(String)Initializes a new instance of the Bundle class.
Public methodBundle(String, String)Initializes a new instance of the Bundle class.
Public methodBundle(String, IBundleTransform[])Initializes a new instance of the Bundle class.
Public methodBundle(String, String, IBundleTransform[])Initializes a new instance of the Bundle class.
Top
  NameDescription
Public propertyBuilderBuilds the bundle content from the individual files included in the Bundle object.
Public propertyCdnFallbackExpressionScript expression rendered by the Scripts helper class to reference the local bundle file if the CDN is unavailable.
Public propertyCdnPathGets or sets an alternate url for the bundle when it is stored in a content delivery network.
Public propertyConcatenationTokenThe token inserted between bundled files to ensure that the final bundle content is valid.
Public propertyEnableFileExtensionReplacementsSpecifies whether to use the FileExtensionReplacementList.
Public propertyOrdererDetermines the order of files in a bundle.
Public propertyPathVirtual path used to reference the Bundle from within a view or Web page.
Public propertyTransformsTransforms the contents of a bundle.
Top
  NameDescription
Public methodApplyTransformsApply the set of IBundleTransform objects to the bundle content.
Protected methodCacheLookupOverrides this to implement own caching logic.
Public methodEnumerateFilesGenerates an enumeration of VirtualFile objects that represent the contents of the bundle.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGenerateBundleResponseProcesses the bundle request to generate the response.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIncludeSpecifies a set of files to be included in the Bundle.
Public methodIncludeDirectory(String, String)Includes all files in a directory that match a search pattern.
Public methodIncludeDirectory(String, String, Boolean)Includes all files in a directory that match a search pattern.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

A bundle is referenced statically via the Path property.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.