Search Results for

    Show / Hide Table of Contents
    View Source

    Class DefaultShortStringHelperConfig

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Strings
    Assembly: Umbraco.Core.dll
    Syntax
    public class DefaultShortStringHelperConfig

    Properties

    View Source

    DefaultCulture

    Declaration
    public string DefaultCulture { get; set; }
    Property Value
    Type Description
    string
    View Source

    UrlReplaceCharacters

    Declaration
    public Dictionary<string, string>? UrlReplaceCharacters { get; set; }
    Property Value
    Type Description
    Dictionary<string, string>

    Methods

    View Source

    ApplyUrlReplaceCharacters(string)

    Returns a new string in which characters have been replaced according to the Umbraco settings UrlReplaceCharacters.

    Declaration
    public string ApplyUrlReplaceCharacters(string s)
    Parameters
    Type Name Description
    string s

    The string to filter.

    Returns
    Type Description
    string

    The filtered string.

    View Source

    Clone()

    Declaration
    public DefaultShortStringHelperConfig Clone()
    Returns
    Type Description
    DefaultShortStringHelperConfig
    View Source

    CutMaxLength(string, int)

    Declaration
    public static string CutMaxLength(string text, int length)
    Parameters
    Type Name Description
    string text
    int length
    Returns
    Type Description
    string
    View Source

    WithConfig(string?, CleanStringType, Config)

    Declaration
    public DefaultShortStringHelperConfig WithConfig(string? culture, CleanStringType stringRole, DefaultShortStringHelperConfig.Config config)
    Parameters
    Type Name Description
    string culture
    CleanStringType stringRole
    DefaultShortStringHelperConfig.Config config
    Returns
    Type Description
    DefaultShortStringHelperConfig
    View Source

    WithConfig(CleanStringType, Config)

    Declaration
    public DefaultShortStringHelperConfig WithConfig(CleanStringType stringRole, DefaultShortStringHelperConfig.Config config)
    Parameters
    Type Name Description
    CleanStringType stringRole
    DefaultShortStringHelperConfig.Config config
    Returns
    Type Description
    DefaultShortStringHelperConfig
    View Source

    WithConfig(Config)

    Declaration
    public DefaultShortStringHelperConfig WithConfig(DefaultShortStringHelperConfig.Config config)
    Parameters
    Type Name Description
    DefaultShortStringHelperConfig.Config config
    Returns
    Type Description
    DefaultShortStringHelperConfig
    View Source

    WithDefault(RequestHandlerSettings)

    Sets the default configuration.

    Declaration
    public DefaultShortStringHelperConfig WithDefault(RequestHandlerSettings requestHandlerSettings)
    Parameters
    Type Name Description
    RequestHandlerSettings requestHandlerSettings
    Returns
    Type Description
    DefaultShortStringHelperConfig

    The short string helper.

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