Partager via


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.

See Also

Reference

Bundle Class

Bundle Overload

System.Web.Optimization Namespace