Export (0) Print
Expand All

Bundle::ApplyTransforms Method

Apply the set of IBundleTransform objects to the bundle content.

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

public:
virtual BundleResponse^ ApplyTransforms(
	BundleContext^ context, 
	String^ bundleContent, 
	IEnumerable<VirtualFile^>^ bundleFiles
)

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::BundleResponse
A 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.

Show:
© 2014 Microsoft