Sdl.Web.Mvc/Html/UrlHelperExtensions.cs
/// <summary>
/// Gets a versioned URL (including the version number of the HTML design/assets).
/// </summary>
/// <param name="helper">The <see cref="UrlHelper"/> instance on which this extension method operates.</param>
/// <param name="relativePath">The (unversioned) URL path relative to the system folder.</param>
/// <param name="localization">Not used (deprecated).</param>
/// <returns>A versioned URL path (server-relative).</returns>
/// <remarks>
/// Versioned URLs are used to facilitate agressive caching of those assets; see <see cref="Sdl.Web.Mvc.Statics.StaticContentModule"/>.
/// </remarks>
Gets a versioned URL (including the version number of the HTML design/assets).
Gets a versioned URL ( including the version number of the HTML design / assets ) .
public static string VersionedContent(this UrlHelper helper, string relativePath, string localization = "")
        {
            string versionedUrlPath = WebRequestContext.Localization.GetVersionedUrlPath(relativePath);
            return helper.Content(versionedUrlPath);
        }
public static string VersionedContent ( this UrlHelper helper , string relativePath , string localization = " " ) { string versionedUrlPath = WebRequestContext . Localization . GetVersionedUrlPath ( relativePath ) ; return helper . Content ( versionedUrlPath ) ; }
Gets a versioned URL (including the version number of the HTML design/assets).
Gets a versioned URL ( including the version number of the HTML design / assets ) .
A versioned URL path (server-relative).
A versioned URL path ( server - relative ) .
UrlHelper
this
relativePath
string
The (unversioned) URL path relative to the system folder.
The ( unversioned ) URL path relative to the system folder .
localization
string
Not used (deprecated).
Not used ( deprecated ) .
helper
The  instance on which this extension method operates.
The instance on which this extension method operates .
remarks
Versioned URLs are used to facilitate agressive caching of those assets; see .
Versioned URLs are used to facilitate agressive caching of those assets ; see .