[]
        
(Showing Draft Content)

C1.Framework.SR-1.GetString

GetString Method

GetString(string)

Returns the value of the resource with the specified name in the assembly indicated by the template type.

Declaration
public static string GetString(string name)
Parameters
Type Name Description
string name

Name of the resource to get.

Returns
Type Description
string

The value of a resource.

GetString(string, params object[])

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.

Declaration
public static string GetString(string name, params object[] args)
Parameters
Type Name Description
string name

Name of the resource to get.

object[] args

An Object array containing zero or more objects to be formatted.

Returns
Type Description
string

The formated value of a resource.

GetString(CultureInfo, string)

Returns the value of the resource localized for the specified culture with the specified name in the assembly indicated by the template type.

Declaration
public static string GetString(CultureInfo culture, string name)
Parameters
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.

Returns
Type Description
string

The value of a resource.

GetString(CultureInfo, string, params object[])

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.

Declaration
public static string GetString(CultureInfo culture, string name, params object[] args)
Parameters
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.

Returns
Type Description
string

The formated value of a resource.