Share via


HttpContextExtensions.GetUrlHelper(HttpContext) Method

Definition

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.

Applies to