ResourceSet::GetString Method (String^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Searches for a String resource with the specified name.

Namespace:   System.Resources
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual String^ GetString(
	String^ name
)

Parameters

name
Type: System::String^

Name of the resource to search for.

Return Value

Type: System::String^

The value of a resource, if the value is a String.

Exception Condition
ArgumentNullException

The name parameter is null.

InvalidOperationException

The resource specified by name is not a String.

ObjectDisposedException

The object has been closed or disposed.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: