Click or drag to resize

AppStringContainer Class

Contains a number of language strings. Is not tied to tblAppStr.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelAppStringContainer

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class AppStringContainer : ICloneable

The AppStringContainer type exposes the following members.

Constructors
  NameDescription
Public methodAppStringContainer
Public methodAppStringContainer(String)
Constructs the object with a comma (,) separated string. Each item must be formatted with languageId:string, for instance 1000:OK
Public methodAppStringContainer(AppString)
Adds a single language string, for the identity user's language, from the app string.
Top
Properties
  NameDescription
Public propertyCount
Number of languages that the container holds strings for.
Public propertyLangStrings
Returns the dictionary of contained strings
Top
Methods
  NameDescription
Public methodAddLanguageString
Public methodAssignTo(AppStringContainer)
Public methodAssignTo(AppString, Boolean)
Public methodAssignTo(AppStringContainer, Boolean)
Public methodClone
Public methodGetLanguageString
Returns the string for a specified language. If no string exists for the specified language then the string for english is returned. If the english string doesn't exist either then the first string in the collection is returned. If the collection is empty then null is returned.
Public methodIsDefinedForLanguage
Public methodReadXml
Public methodSetLanguageString
Public methodToCSVString
Public methodToSearchXml
Public methodToString
Returns a human readable string
(Overrides ObjectToString.)
Public methodToStringAllLanguages
Returns a human readable string with all contained languages
Public methodWriteXml
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also