View Source
Class DictionaryItemExtensions
Inheritance
System.Object
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
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
Returns
Type |
Description |
System.String |
|