Condividi tramite


Optimizer.BuildBundle Method

Builds a BundleResponse object from the declarations found in a bundle manifest file.

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

Syntax

'Declaration
Public Shared Function BuildBundle ( _
    bundlePath As String, _
    settings As OptimizationSettings _
) As BundleResponse
'Usage
Dim bundlePath As String 
Dim settings As OptimizationSettings 
Dim returnValue As BundleResponse 

returnValue = Optimizer.BuildBundle(bundlePath, _
    settings)
public static BundleResponse BuildBundle(
    string bundlePath,
    OptimizationSettings settings
)
public:
static BundleResponse^ BuildBundle(
    String^ bundlePath, 
    OptimizationSettings^ settings
)
static member BuildBundle : 
        bundlePath:string * 
        settings:OptimizationSettings -> BundleResponse
public static function BuildBundle(
    bundlePath : String, 
    settings : OptimizationSettings
) : BundleResponse

Parameters

  • bundlePath
    Type: System.String
    The path to the bundle being requested.

Return Value

Type: System.Web.Optimization.BundleResponse
The bundle response for specified bundlePath.

See Also

Reference

Optimizer Class

System.Web.Optimization Namespace