UrlHelper.Action(UrlActionContext) 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.
Generates a URL with an absolute path for an action method, which contains the action
name, controller name, route values, protocol to use, host name, and fragment specified by
UrlActionContext. Generates an absolute URL if Protocol and
Host are non-null. See the remarks section for important security information.
public:
 virtual System::String ^ Action(Microsoft::AspNetCore::Mvc::Routing::UrlActionContext ^ actionContext);public:
 override System::String ^ Action(Microsoft::AspNetCore::Mvc::Routing::UrlActionContext ^ actionContext);public virtual string Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);public override string? Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);public override string Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);abstract member Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> string
override this.Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> stringoverride this.Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> stringPublic Overridable Function Action (actionContext As UrlActionContext) As StringPublic Overrides Function Action (actionContext As UrlActionContext) As StringParameters
- actionContext
- UrlActionContext
The context object for the generated URLs for an action method.
Returns
The generated URL.