Search Results for

    Show / Hide Table of Contents
    View Source

    Class LinkGeneratorExtensions

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public static class LinkGeneratorExtensions

    Methods

    View Source

    GetUmbracoApiServiceBaseUrl<T>(LinkGenerator, Expression<Func<T, object?>>)

    Declaration
    [Obsolete("This will be removed in Umbraco 15.")]
    public static string? GetUmbracoApiServiceBaseUrl<T>(this LinkGenerator linkGenerator, Expression<Func<T, object?>> methodSelector) where T : UmbracoApiControllerBase
    Parameters
    Type Name Description
    LinkGenerator linkGenerator
    Expression<Func<T, object>> methodSelector
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T
    View Source

    GetUmbracoApiService<T>(LinkGenerator, Expression<Func<T, object>>)

    Declaration
    [Obsolete("This will be removed in Umbraco 15.")]
    public static string? GetUmbracoApiService<T>(this LinkGenerator linkGenerator, Expression<Func<T, object>> methodSelector) where T : UmbracoApiController
    Parameters
    Type Name Description
    LinkGenerator linkGenerator
    Expression<Func<T, object>> methodSelector
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T
    View Source

    GetUmbracoApiService<T>(LinkGenerator, string, IDictionary<string, object?>?)

    Declaration
    [Obsolete("This will be removed in Umbraco 15.")]
    public static string? GetUmbracoApiService<T>(this LinkGenerator linkGenerator, string actionName, IDictionary<string, object?>? values) where T : UmbracoApiControllerBase
    Parameters
    Type Name Description
    LinkGenerator linkGenerator
    string actionName
    IDictionary<string, object> values
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T
    View Source

    GetUmbracoApiService<T>(LinkGenerator, string, object?)

    Return the Url for a Web Api service

    Declaration
    [Obsolete("This will be removed in Umbraco 15.")]
    public static string? GetUmbracoApiService<T>(this LinkGenerator linkGenerator, string actionName, object? id = null) where T : UmbracoApiControllerBase
    Parameters
    Type Name Description
    LinkGenerator linkGenerator
    string actionName
    object id
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T

    The UmbracoApiControllerBase

    View Source

    GetUmbracoControllerUrl(LinkGenerator, string, string, string?, 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
    LinkGenerator linkGenerator
    string actionName
    string controllerName
    string area
    IDictionary<string, object> dict
    Returns
    Type Description
    string
    View Source

    GetUmbracoControllerUrl(LinkGenerator, string, Type, 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
    LinkGenerator linkGenerator
    string actionName
    Type controllerType
    IDictionary<string, object> values
    Returns
    Type Description
    string
    View Source

    GetUmbracoSurfaceUrl<T>(LinkGenerator, Expression<Func<T, object>>)

    Return the Url for a Surface Controller

    Declaration
    public static string? GetUmbracoSurfaceUrl<T>(this LinkGenerator linkGenerator, Expression<Func<T, object>> methodSelector) where T : SurfaceController
    Parameters
    Type Name Description
    LinkGenerator linkGenerator
    Expression<Func<T, object>> methodSelector
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T

    The SurfaceController

    View Source

    GetUmbracoSurfaceUrl<T>(LinkGenerator, string, object?)

    Return the Url for a Surface Controller

    Declaration
    public static string? GetUmbracoSurfaceUrl<T>(this LinkGenerator linkGenerator, string actionName, object? id = null) where T : SurfaceController
    Parameters
    Type Name Description
    LinkGenerator linkGenerator
    string actionName
    object id
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T

    The SurfaceController

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX