Partager via


BundleContext Class

Encapsulates the info needed to process a bundle request

Inheritance Hierarchy

System.Object
  System.Web.Optimization.BundleContext

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

Syntax

'Declaration
Public Class BundleContext
'Usage
Dim instance As BundleContext
public class BundleContext
public ref class BundleContext
type BundleContext =  class end
public class BundleContext

The BundleContext type exposes the following members.

Constructors

  Name Description
Public method BundleContext Initializes a new instance of the BundleContext class.

Top

Properties

  Name Description
Public property BundleCollection Gets or sets the collection of bundles.
Public property BundleVirtualPath Gets or sets the virtual path for the bundle request
Public property EnableInstrumentation Gets or sets whether the instrumentation output is requested.
Public property EnableOptimizations Gets or sets whether optimizations are enabled via EnableOptimizations.
Public property HttpContext Gets or sets the HTTP context associated with the bundle context.
Public property UseServerCache Gets or sets whether the bindle context will store the bundle response in the HttpContext.Cache.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

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.

See Also

Reference

System.Web.Optimization Namespace