UrlActionContext Class¶
Context object to be used for the URLs that Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext) generates.
- Namespace
Microsoft.AspNetCore.Mvc.Routing- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Properties¶
-
Microsoft.AspNetCore.Mvc.Routing.UrlActionContext.Action¶ The name of the action method that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)uses to generate URLs.Return type: System.String public string Action { get; set; }
-
Microsoft.AspNetCore.Mvc.Routing.UrlActionContext.Controller¶ The name of the controller that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)uses to generate URLs.Return type: System.String public string Controller { get; set; }
-
Microsoft.AspNetCore.Mvc.Routing.UrlActionContext.Fragment¶ The fragment for the URLs that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)generates.Return type: System.String public string Fragment { get; set; }
-
Microsoft.AspNetCore.Mvc.Routing.UrlActionContext.Host¶ The host name for the URLs that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)generates.Return type: System.String public string Host { get; set; }
-
Microsoft.AspNetCore.Mvc.Routing.UrlActionContext.Protocol¶ The protocol for the URLs that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)generates such as “http” or “https”Return type: System.String public string Protocol { get; set; }
-
Microsoft.AspNetCore.Mvc.Routing.UrlActionContext.Values¶ The object that contains the route parameters that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)uses to generate URLs.Return type: System.Object public object Values { get; set; }
-