[]
        
(Showing Draft Content)

C1.Schedule.Localization.C1Localizer.GetString

GetString Method

GetString(string, string, string, string)

Returns the localized string for the specified culture.

Declaration
public static string GetString(string resourceAssembly, string resourceDictionary, string resourceKey, string defaultValue)
Public Shared Function GetString(resourceAssembly As String, resourceDictionary As String, resourceKey As String, defaultValue As String) As String
Parameters
Type Name Description
string resourceAssembly

The name of resource assembly.

string resourceDictionary

The name of resource dictionary.

string resourceKey

The resource key.

string defaultValue

The default value.

Returns
Type Description
string
Remarks

Search order: - searching in the specified resource Assembly; - searching in satellite Assemblies of the specified resource Assembly; - searching in the executing assembly; - repeating the search in above assemblies for the parent culture; - if result is not found, returning the specified default value.

GetString(string, string, string, string, CultureInfo)

Returns the localized string for the specified culture.

Declaration
[Obsolete("This method is obsolete. Use overload without culture parameter instead.")]
public static string GetString(string resourceAssembly, string resourceDictionary, string resourceKey, string defaultValue, CultureInfo culture)
<Obsolete("This method is obsolete. Use overload without culture parameter instead.")>
Public Shared Function GetString(resourceAssembly As String, resourceDictionary As String, resourceKey As String, defaultValue As String, culture As CultureInfo) As String
Parameters
Type Name Description
string resourceAssembly

The name of resource assembly.

string resourceDictionary

The name of resource dictionary.

string resourceKey

The resource key.

string defaultValue

The default value.

CultureInfo culture

The CultureInfo info.

Returns
Type Description
string
Remarks

Search order: - searching in the specified resource Assembly; - searching in satellite Assemblies of the specified resource Assembly; - searching in the executing assembly; - repeating the search in above assemblies for the parent culture; - if result is not found, returning the specified default value.

GetString(string, string, string)

Returns the localized string for the specified culture.

Declaration
public static string GetString(string resourceDictionary, string resourceKey, string defaultValue)
Public Shared Function GetString(resourceDictionary As String, resourceKey As String, defaultValue As String) As String
Parameters
Type Name Description
string resourceDictionary

The name of resource dictionary.

string resourceKey

The resource key.

string defaultValue

The default value.

Returns
Type Description
string
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.

GetString(string, string, string, CultureInfo)

Returns the localized string for the specified culture.

Declaration
[Obsolete("This method is obsolete. Use overload without culture parameter instead.")]
public static string GetString(string resourceDictionary, string resourceKey, string defaultValue, CultureInfo culture)
<Obsolete("This method is obsolete. Use overload without culture parameter instead.")>
Public Shared Function GetString(resourceDictionary As String, resourceKey As String, defaultValue As String, culture As CultureInfo) As String
Parameters
Type Name Description
string resourceDictionary

The name of resource dictionary.

string resourceKey

The resource key.

string defaultValue

The default value.

CultureInfo culture

The CultureInfo object.

Returns
Type Description
string
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.