System.Web.Mvc.T4Extensions.GetRouteValueDictionary C# (CSharp) Method

GetRouteValueDictionary() public static method

public static GetRouteValueDictionary ( this result ) : RouteValueDictionary
result this
return RouteValueDictionary
        public static RouteValueDictionary GetRouteValueDictionary(this ActionResult result) {
            return result.GetT4MVCResult().RouteValueDictionary;
        }

Usage Example

Example #1
0
 public static MvcHtmlString ActionLink <TActionResult>(this HtmlHelper htmlHelper, string linkText, Task <TActionResult> taskResult, IDictionary <string, object> htmlAttributes, string protocol, string hostName, string fragment) where TActionResult : ActionResult
 {
     return(LinkExtensions.RouteLink(htmlHelper, linkText, (string)null, protocol ?? T4Extensions.GetT4MVCResult(taskResult.Result).Protocol, hostName, fragment, T4Extensions.GetRouteValueDictionary(taskResult.Result), htmlAttributes));
 }