Click or drag to resize

AppString Methods

The AppString type exposes the following members.

Methods
  NameDescription
Public methodAppendToLanguageStrings
Appends a text to all language strings. The applied text is an AppString itself so it can be defined in multiple laignages. If insertSpace is defined, a space is added before the text. The method is used for post-fixing the name on a cloned object with " (copy)"
Public methodAssignFrom
Assigns language strings from source. Existing language strings, for languages not present in source, are preserved.
Public methodClone
Public methodCompareStringTo
Compares two AppString objects using their current language using ToString()
Public methodCompareTo(Object)
Compares two AppString objects.
Public methodCompareTo(AppString)
Compares two AppString objects.
Public methodEquals
Compares two AppString objects.
(Overrides ObjectEquals(Object).)
Public methodStatic memberGetDifferingLanguageIds
Compares the language strings in two AppString objects and returns the ids of the languages where they differ.
Public methodGetHashCode
(Overrides ObjectGetHashCode.)
Public methodGetLangStr
Returns a LangString object for the given langId. If no object exists the null is returned.
Public methodGetLangStrDefault
Returns a LangString object for the specified language id.
Public methodGetSimpleString
Returns a SimpleAppString object with the current users language string
Public methodResetAll
Resets ID's etc. The method is used when creating an copy of an existing AppString object for storage in the database.
Public methodSetLanguageString(String)
Sets the string value of the language string for the active user's language. If the langstring object doesn't already exist it is created UNLESS it is empty (""). If the string value for the default language is empty ("") it is also set to the same string value.
Public methodSetLanguageString(String, Int32, Boolean)
Sets the string value of the language string for the given language. If the langstring object doesn't already exist it is created UNLESS it is empty (""). If the string value for the default language is empty ("") it is also set to the same string value.
Public methodSetLanguageStrings
Method transfers the text to all LangStrings in the source, but only for active languages The text will be formatted with the args arguments.
Public methodToString
Returns the language specific string based on the active users language
(Overrides ObjectToString.)
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
Explicit Interface Implementations
See Also