Search Results for

    Show / Hide Table of Contents
    View Source

    Class DictionaryItemExtensions

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

    Methods

    View Source

    GetDefaultValue(IDictionaryItem)

    Returns the default translated value based on the default language

    Declaration
    public static string GetDefaultValue(this IDictionaryItem d)
    Parameters
    Type Name Description
    IDictionaryItem d
    Returns
    Type Description
    System.String
    View Source

    GetTranslatedValue(IDictionaryItem, Int32)

    Returns the translation value for the language id, if no translation is found it returns an empty string

    Declaration
    public static string GetTranslatedValue(this IDictionaryItem d, int languageId)
    Parameters
    Type Name Description
    IDictionaryItem d
    System.Int32 languageId
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetDefaultValue(IDictionaryItem)
      • GetTranslatedValue(IDictionaryItem, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX