Search Results for

    Show / Hide Table of Contents
    View Source

    Class DefaultUrlSegmentProvider

    Default implementation of IUrlSegmentProvider.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Strings
    Assembly: Umbraco.Core.dll
    Syntax
    public class DefaultUrlSegmentProvider : IUrlSegmentProvider

    Constructors

    View Source

    DefaultUrlSegmentProvider(IShortStringHelper)

    Declaration
    public DefaultUrlSegmentProvider(IShortStringHelper shortStringHelper)
    Parameters
    Type Name Description
    IShortStringHelper shortStringHelper

    Methods

    View Source

    GetUrlSegment(IContentBase, Boolean, String)

    Declaration
    public virtual string GetUrlSegment(IContentBase content, bool published, string culture = null)
    Parameters
    Type Name Description
    IContentBase content
    System.Boolean published
    System.String culture
    Returns
    Type Description
    System.String
    View Source

    GetUrlSegment(IContentBase, String)

    Gets the URL segment for a specified content and culture.

    Declaration
    public virtual string GetUrlSegment(IContentBase content, string culture = null)
    Parameters
    Type Name Description
    IContentBase content

    The content.

    System.String culture

    The culture.

    Returns
    Type Description
    System.String

    The URL segment.

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