Bundle Constructor (String, String, IBundleTransform[])
Initializes a new instance of the Bundle class.
Namespace: System.Web.Optimization
Assembly: System.Web.Optimization (in System.Web.Optimization.dll)
Syntax
'Declaration
Public Sub New ( _
virtualPath As String, _
cdnPath As String, _
ParamArray transforms As IBundleTransform() _
)
'Usage
Dim virtualPath As String
Dim cdnPath As String
Dim transforms As IBundleTransform()
Dim instance As New Bundle(virtualPath, _
cdnPath, transforms)
public Bundle(
string virtualPath,
string cdnPath,
params IBundleTransform[] transforms
)
public:
Bundle(
String^ virtualPath,
String^ cdnPath,
... array<IBundleTransform^>^ transforms
)
new :
virtualPath:string *
cdnPath:string *
transforms:IBundleTransform[] -> Bundle
public function Bundle(
virtualPath : String,
cdnPath : String,
... transforms : IBundleTransform[]
)
Parameters
- virtualPath
Type: System.String
The virtual path used to reference the Bundle from within a view or Web page.
- cdnPath
Type: System.String
An alternate URL for the bundle when it is stored in a content delivery network.
- transforms
Type: System.Web.Optimization.IBundleTransform[]
A list of IBundleTransform objects which process the contents of the bundle in the order which they are added.