[]
Returns the value of the resource with the specified name in the assembly indicated by the template type.
public static string GetString(string name)
Type | Name | Description |
---|---|---|
string | name | Name of the resource to get. |
Type | Description |
---|---|
string | The value of a resource. |
Returns the value of the resource with the specified name in the assembly indicated by the template type and returns the formated string that replaced the format specification in the String with the textual equivalent of the value of a corresponding Object instance in a specified array.
public static string GetString(string name, params object[] args)
Type | Name | Description |
---|---|---|
string | name | Name of the resource to get. |
object[] | args | An Object array containing zero or more objects to be formatted. |
Type | Description |
---|---|
string | The formated value of a resource. |
Returns the value of the resource localized for the specified culture with the specified name in the assembly indicated by the template type.
public static string GetString(CultureInfo culture, string name)
Type | Name | Description |
---|---|---|
CultureInfo | culture | The CultureInfo object that represents the culture for which the resource is localized. |
string | name | Name of the resource to get. |
Type | Description |
---|---|
string | The value of a resource. |
Returns the value of the resource localized for the specified culture with the specified name in the assembly indicated by the template type and returns the formated string that replaced the format specification in the String with the textual equivalent of the value of a corresponding Object instance in a specified array.
public static string GetString(CultureInfo culture, string name, params object[] args)
Type | Name | Description |
---|---|---|
CultureInfo | culture | The CultureInfo object that represents the culture for which the resource is localized. |
string | name | Name of the resource to get. |
object[] | args | An Object array containing zero or more objects to be formatted. |
Type | Description |
---|---|
string | The formated value of a resource. |