Share via


BundleCollection.ResolveBundleUrl Method (String, Boolean)

Returns the bundle URL for the specified virtual path, including a content hash if requested.

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

Syntax

'Declaration
Public Function ResolveBundleUrl ( _
    bundleVirtualPath As String, _
    includeContentHash As Boolean _
) As String
'Usage
Dim instance As BundleCollection 
Dim bundleVirtualPath As String 
Dim includeContentHash As Boolean 
Dim returnValue As String 

returnValue = instance.ResolveBundleUrl(bundleVirtualPath, _
    includeContentHash)
public string ResolveBundleUrl(
    string bundleVirtualPath,
    bool includeContentHash
)
public:
String^ ResolveBundleUrl(
    String^ bundleVirtualPath, 
    bool includeContentHash
)
member ResolveBundleUrl : 
        bundleVirtualPath:string * 
        includeContentHash:bool -> string
public function ResolveBundleUrl(
    bundleVirtualPath : String, 
    includeContentHash : boolean
) : String

Parameters

  • bundleVirtualPath
    Type: System.String
    The virtual path of the bundle.
  • includeContentHash
    Type: System.Boolean
    true to include a hash code for the content; otherwise, false. The default is true.

Return Value

Type: System.String
The bundle URL or null if the bundle cannot be found.

See Also

Reference

BundleCollection Class

ResolveBundleUrl Overload

System.Web.Optimization Namespace