Share via


UrlHelperFactory.GetUrlHelper(ActionContext) Method

Definition

Gets an IUrlHelper for the request associated with context.

public:
 virtual Microsoft::AspNetCore::Mvc::IUrlHelper ^ GetUrlHelper(Microsoft::AspNetCore::Mvc::ActionContext ^ context);
public Microsoft.AspNetCore.Mvc.IUrlHelper GetUrlHelper (Microsoft.AspNetCore.Mvc.ActionContext context);
abstract member GetUrlHelper : Microsoft.AspNetCore.Mvc.ActionContext -> Microsoft.AspNetCore.Mvc.IUrlHelper
override this.GetUrlHelper : Microsoft.AspNetCore.Mvc.ActionContext -> Microsoft.AspNetCore.Mvc.IUrlHelper
Public Function GetUrlHelper (context As ActionContext) As IUrlHelper

Parameters

context
ActionContext

The ActionContext associated with the current request.

Returns

An IUrlHelper for the request associated with context

Implements

Applies to