Export (0) Print
Expand All

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)

type Bundle =  class end

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 propertyBuilderGets the object used to build the bundle content from the individual files included in the Bundle object.
Public propertyCdnFallbackExpressionGets the script 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 propertyConcatenationTokenGets the token inserted between bundled files to ensure that the final bundle content is valid.
Public propertyEnableFileExtensionReplacementsGets a value that specifies whether to use the FileExtensionReplacementList.
Public propertyOrdererGets a value that determines the order of files in a bundle.
Public propertyPathGets the virtual path used to reference the Bundle from within a view or Web page.
Public propertyTransformsGets the transforms which process the contents of a bundle.
Top

  NameDescription
Public methodApplyTransformsApplies the transforms to the bundle.
Public 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 methodGetCacheKeyGets the cache key for the specified bundle context.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInclude(String[])Specifies a set of files to be included in the Bundle.
Public methodInclude(String, IItemTransform[])Specifies 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.)
Public methodUpdateCacheUpdates the cache with the specified bundle response.
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.
Show:
© 2014 Microsoft