NAnt SDK Documentation - v0.92 |

# ResourceUtils.GetString Method (String)

Returns the value of the specified string resource.

[Visual Basic]
Overloads Public Shared Function GetString( _
ByVal name As String _
) As String
[C#]
public static string GetString(
string name
);

#### Parameters

name
  A String that contains the name of the resource to get.

#### Return Value

A String that contains the value of the resource localized for the current culture.

#### Remarks

The returned resource is localized for the cultural settings of the current Thread.

> Note The `GetString` method is thread-safe.

#### Example

The following example demonstrates the `GetString` method using the cultural settings of the current Thread.

    string localizedString = ResourceUtils.GetString("String_HelloWorld");

#### See Also

ResourceUtils Class | NAnt.Core.Util Namespace | ResourceUtils.GetString Overload List