Share via


Styles.Url Method

Generates a version-stamped URL for a bundle.

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

Syntax

'Declaration
Public Shared Function Url ( _
    virtualPath As String _
) As IHtmlString
'Usage
Dim virtualPath As String 
Dim returnValue As IHtmlString 

returnValue = Styles.Url(virtualPath)
public static IHtmlString Url(
    string virtualPath
)
public:
static IHtmlString^ Url(
    String^ virtualPath
)
static member Url : 
        virtualPath:string -> IHtmlString
public static function Url(
    virtualPath : String
) : IHtmlString

Parameters

Return Value

Type: System.Web.IHtmlString
A fingerprinted URL.

Remarks

If the supplied virtual path identifies a bundle, a version-stamped URL is returned. If the virtual path is not a bundle, the resolved virtual path URL is returned.

See Also

Reference

Styles Class

System.Web.Optimization Namespace