Bundle.ApplyTransforms Method
Apply the set of IBundleTransform objects to the bundle content.
Assembly: System.Web.Optimization (in System.Web.Optimization.dll)
public function ApplyTransforms( context : BundleContext, bundleContent : String, bundleFiles : IEnumerable<VirtualFile> ) : BundleResponse
Parameters
- context
- Type: System.Web.Optimization.BundleContext
The BundleContext object that contains state for both the framework configuration and the HTTP request.
- bundleContent
- Type: System.String
The compiled content of all files in the bundle.
- bundleFiles
- Type: System.Collections.Generic.IEnumerable(VirtualFile)
The list of all file paths in the bundle.
Return Value
Type: System.Web.Optimization.BundleResponseA BundleResponse object containing the processed bundle contents.
ApplyTransforms iterates through each IBundleTransform object that was configured with the bundle when it was created and calls the transform's Process(BundleContext, BundleResponse) method.