Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceSet::GetString Method (String^)

 

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:
© 2017 Microsoft