ComponentOne FinancialChart for WPF
C1.WPF.Localization Namespace / C1Localizer Class / GetString Method / GetString(String,String,String,CultureInfo,Assembly) Method
The name of resource dictionary.
The resource key.
The default value.
The System.Globalization.CultureInfo object.
The current executing assembly.



In This Topic
    GetString(String,String,String,CultureInfo,Assembly) Method
    In This Topic
    Returns the localized string for the specified culture.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetString( _
       ByVal resourceDictionary As String, _
       ByVal resourceKey As String, _
       ByVal defaultValue As String, _
       ByVal culture As CultureInfo, _
       Optional ByVal currentAssembly As Assembly _
    ) As String
    'Usage
     
    
    Dim resourceDictionary As String
    Dim resourceKey As String
    Dim defaultValue As String
    Dim culture As CultureInfo
    Dim currentAssembly As Assembly
    Dim value As String
     
    value = C1Localizer.GetString(resourceDictionary, resourceKey, defaultValue, culture, currentAssembly)

    Parameters

    resourceDictionary
    The name of resource dictionary.
    resourceKey
    The resource key.
    defaultValue
    The default value.
    culture
    The System.Globalization.CultureInfo object.
    currentAssembly
    The current executing assembly.
    Remarks
    Search order: - searching in the executing Assembly; - repeating the search for the parent culture; - if result is not found, returning the specified default value.
    See Also