MessagesExtensionsToTranslate Method | |
Translation of enumeration
Messages. If not found in dictionary then give Name of enumeration back
Namespace:
SIC
Assembly:
SIC (in SIC.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string ToTranslate(
this Dictionary<string, string> pDictionaryUI,
Messages pMessage
)
<ExtensionAttribute>
Public Shared Function ToTranslate (
pDictionaryUI As Dictionary(Of String, String),
pMessage As Messages
) As String
Parameters
- pDictionaryUI
- Type: System.Collections.GenericDictionaryString, String
User interface dictionary - pMessage
- Type: SICMessages
A message item of enumeration Messages
Return Value
Type:
String[Missing <returns> documentation for "M:SIC.MessagesExtensions.ToTranslate(System.Collections.Generic.Dictionary{System.String,System.String},SIC.Messages)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DictionaryString,
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
This extension to does easier translation of messages.
The dictionary UI group is "Message" so is identification "Message" plus name of enumeration
MessagesWhen the Debug mode is active, all non-existent entries are written to the Debug window
Examples SOWIWeb.Helper.Session.Message = this.DictionaryUI.ToTranslate(SIC.Messages.DataNotFound);
See Also