LocalizationHelperGetString(String, LocalizationContext) Method
Gets a localized string for the specified
key using the specified
context.
It invokes the
LocalizationRequested event to retrieve the string resource. If the event is not handled,
and a resource set is available for the specified context, it retrieves the string from that resource set.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static string? GetString(
string key,
LocalizationContext? context
)
Public Shared Function GetString (
key As String,
context As LocalizationContext
) As String
public:
static String^ GetString(
String^ key,
LocalizationContext^ context
)
static member GetString :
key : string *
context : LocalizationContext -> string
- key String
- The key of the requested string resource.
- context LocalizationContext
- The localization context to use for the operation. If , no context is used.
StringThe localized string for the specified
key if found; otherwise,
.