StyleBundle Class
Represents a bundle that does CSS minification.
Inheritance Hierarchy
System.Object
System.Web.Optimization.Bundle
System.Web.Optimization.StyleBundle
Namespace: System.Web.Optimization
Assembly: System.Web.Optimization (in System.Web.Optimization.dll)
Syntax
'Declaration
Public Class StyleBundle _
Inherits Bundle
'Usage
Dim instance As StyleBundle
public class StyleBundle : Bundle
public ref class StyleBundle : public Bundle
type StyleBundle =
class
inherit Bundle
end
public class StyleBundle extends Bundle
The StyleBundle type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StyleBundle(String) | Initializes a new instance of the StyleBundle class with a virtual path for the bundle. | |
StyleBundle(String, String) | Initializes a new instance of the StyleBundle class with virtual path and CDN path for the bundle. |
Top
Properties
Name | Description | |
---|---|---|
Builder | Gets the object used to build the bundle content from the individual files included in the Bundle object. (Inherited from Bundle.) | |
CdnFallbackExpression | Gets the script expression rendered by the Scripts helper class to reference the local bundle file if the CDN is unavailable. (Inherited from Bundle.) | |
CdnPath | Gets or sets an alternate URL for the bundle when it is stored in a content delivery network. (Inherited from Bundle.) | |
ConcatenationToken | Gets the token inserted between bundled files to ensure that the final bundle content is valid. (Inherited from Bundle.) | |
EnableFileExtensionReplacements | Gets a value that specifies whether to use the FileExtensionReplacementList. (Inherited from Bundle.) | |
Orderer | Gets a value that determines the order of files in a bundle. (Inherited from Bundle.) | |
Path | Gets the virtual path used to reference the Bundle from within a view or Web page. (Inherited from Bundle.) | |
Transforms | Gets the transforms which process the contents of a bundle. (Inherited from Bundle.) |
Top
Methods
Name | Description | |
---|---|---|
ApplyTransforms | Applies the transforms to the bundle. (Inherited from Bundle.) | |
CacheLookup | Overrides this to implement own caching logic. (Inherited from Bundle.) | |
EnumerateFiles | Generates an enumeration of VirtualFile objects that represent the contents of the bundle. (Inherited from Bundle.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GenerateBundleResponse | Processes the bundle request to generate the response. (Inherited from Bundle.) | |
GetCacheKey | Gets the cache key for the specified bundle context. (Inherited from Bundle.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Include(String[]) | Specifies a set of files to be included in the Bundle. (Inherited from Bundle.) | |
Include(String, IItemTransform[]) | Specifies a set of files to be included in the Bundle. (Inherited from Bundle.) | |
IncludeDirectory(String, String) | Includes all files in a directory that match a search pattern. (Inherited from Bundle.) | |
IncludeDirectory(String, String, Boolean) | Includes all files in a directory that match a search pattern. (Inherited from Bundle.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
UpdateCache | Updates the cache with the specified bundle response. (Inherited from Bundle.) |
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.