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