Compartir a través de


BundleResolver Class

Represents a class that determine if a script reference is a bundle, and what it contains to prevent duplicate script references.

Inheritance Hierarchy

System.Object
  System.Web.Optimization.BundleResolver

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

Syntax

'Declaration
Public Class BundleResolver _
    Implements IBundleResolver
'Usage
Dim instance As BundleResolver
public class BundleResolver : IBundleResolver
public ref class BundleResolver : IBundleResolver
type BundleResolver =  
    class 
        interface IBundleResolver 
    end
public class BundleResolver implements IBundleResolver

The BundleResolver type exposes the following members.

Constructors

  Name Description
Public method BundleResolver() Initializes a new instance of the BundleResolver class.
Public method BundleResolver(BundleCollection) Initializes a new instance of the BundleResolver class with the specified bundle.
Public method BundleResolver(BundleCollection, HttpContextBase) Initializes a new instance of the BundleResolver class with the specified bundle and context.

Top

Properties

  Name Description
Public propertyStatic member Current Gets or sets the ScriptManager that reflects against Current.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBundleContents Returns an enumeration of actual file paths to the contents of the bundle.
Public method GetBundleUrl Gets the versioned url for the bundle or returns the virtualPath unchanged if it does not point to a bundle.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IsBundleVirtualPath Determines if the virtualPath is to a bundle.
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