Share via


BundleResolver.GetBundleUrl Method

Gets the versioned url for the bundle or returns the virtualPath unchanged if it does not point to a bundle.

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

Syntax

'Declaration
Public Function GetBundleUrl ( _
    virtualPath As String _
) As String
'Usage
Dim instance As BundleResolver 
Dim virtualPath As String 
Dim returnValue As String 

returnValue = instance.GetBundleUrl(virtualPath)
public string GetBundleUrl(
    string virtualPath
)
public:
virtual String^ GetBundleUrl(
    String^ virtualPath
) sealed
abstract GetBundleUrl : 
        virtualPath:string -> string  
override GetBundleUrl : 
        virtualPath:string -> string
public final function GetBundleUrl(
    virtualPath : String
) : String

Parameters

Return Value

Type: System.String
The versioned url for the bundle.

Implements

IBundleResolver.GetBundleUrl(String)

See Also

Reference

BundleResolver Class

System.Web.Optimization Namespace