HttpContextExtensions.GetUrlHelper(HttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension method to return the IUrlHelper from the HttpContext.
public static Microsoft.AspNetCore.Mvc.IUrlHelper GetUrlHelper (this Microsoft.AspNetCore.Http.HttpContext httpContext);
static member GetUrlHelper : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Mvc.IUrlHelper
<Extension()>
Public Function GetUrlHelper (httpContext As HttpContext) As IUrlHelper
Parameters
- httpContext
- HttpContext
The Http context.
Returns
The IUrlHelper.