View Source
  Class LinkGeneratorExtensions
  
  
  
  
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Web.Common.dll
  Syntax
  
    public static class LinkGeneratorExtensions
   
  Methods
  
  
    View Source
  
  GetUmbracoControllerUrl(LinkGenerator, String, String, String, Nullable<IDictionary<String, Object>>)
  Return the Url for an Umbraco controller
Declaration
  
    public static string GetUmbracoControllerUrl(this LinkGenerator linkGenerator, string actionName, string controllerName, string area, IDictionary<string, object>? dict = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Microsoft.AspNetCore.Routing.LinkGenerator | linkGenerator |  | 
      
        | System.String | actionName |  | 
      
        | System.String | controllerName |  | 
      
        | System.String | area |  | 
      
        | System.Nullable<IDictionary<System.String, System.Object>> | dict |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.String |  | 
    
  
  
    View Source
  
  GetUmbracoControllerUrl(LinkGenerator, String, Type, Nullable<IDictionary<String, Object>>)
  Return the Url for an Umbraco controller
Declaration
  
    public static string GetUmbracoControllerUrl(this LinkGenerator linkGenerator, string actionName, Type controllerType, IDictionary<string, object>? values = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Microsoft.AspNetCore.Routing.LinkGenerator | linkGenerator |  | 
      
        | System.String | actionName |  | 
      
        | Type | controllerType |  | 
      
        | System.Nullable<IDictionary<System.String, System.Object>> | values |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.String |  |