Search Results for

    Show / Hide Table of Contents
    View Source

    Class DefaultShortStringHelperConfig

    Inheritance
    System.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
    System.String
    View Source

    UrlReplaceCharacters

    Declaration
    public Dictionary<string, string>? UrlReplaceCharacters { get; set; }
    Property Value
    Type Description
    System.Nullable<Umbraco.Cms.Core.Dictionary<System.String, System.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
    System.String s

    The string to filter.

    Returns
    Type Description
    System.String

    The filtered string.

    View Source

    Clone()

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

    CutMaxLength(String, Int32)

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

    WithConfig(String, CleanStringType, DefaultShortStringHelperConfig.Config)

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

    WithConfig(CleanStringType, DefaultShortStringHelperConfig.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(DefaultShortStringHelperConfig.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.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • DefaultCulture
      • UrlReplaceCharacters
    • Methods
      • ApplyUrlReplaceCharacters(String)
      • Clone()
      • CutMaxLength(String, Int32)
      • WithConfig(String, CleanStringType, DefaultShortStringHelperConfig.Config)
      • WithConfig(CleanStringType, DefaultShortStringHelperConfig.Config)
      • WithConfig(DefaultShortStringHelperConfig.Config)
      • WithDefault(RequestHandlerSettings)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX