Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentBaseExtensions

    Provides extension methods to IContentBase to get URL segments.

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class ContentBaseExtensions

    Methods

    View Source

    GetUrlSegment(IContentBase, IShortStringHelper, IEnumerable<IUrlSegmentProvider>, String)

    Gets the URL segment for a specified content and culture.

    Declaration
    public static string GetUrlSegment(this IContentBase content, IShortStringHelper shortStringHelper, IEnumerable<IUrlSegmentProvider> urlSegmentProviders, string culture = null)
    Parameters
    Type Name Description
    IContentBase content

    The content.

    IShortStringHelper shortStringHelper
    IEnumerable<IUrlSegmentProvider> urlSegmentProviders
    System.String culture

    The culture.

    Returns
    Type Description
    System.String

    The URL segment.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetUrlSegment(IContentBase, IShortStringHelper, IEnumerable<IUrlSegmentProvider>, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX