[]
Returns the localized string for the specified culture.
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
| 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. |
| Type | Description |
|---|---|
| string |
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.
Returns the localized string for the specified culture.
[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
| 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. |
| Type | Description |
|---|---|
| string |
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.
Returns the localized string for the specified culture.
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
| Type | Name | Description |
|---|---|---|
| string | resourceDictionary | The name of resource dictionary. |
| string | resourceKey | The resource key. |
| string | defaultValue | The default value. |
| Type | Description |
|---|---|
| string |
Search order: - searching in the executing Assembly; - repeating the search for the parent culture; - if result is not found, returning the specified default value.
Returns the localized string for the specified culture.
[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
| 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. |
| Type | Description |
|---|---|
| string |
Search order: - searching in the executing Assembly; - repeating the search for the parent culture; - if result is not found, returning the specified default value.