This documentation is archived and is not being maintained.

ResourceSet.GetString Method (String)

.NET Framework 1.1

Searches for a String resource with the specified name.

[Visual Basic]
Overloads Public Overridable Function GetString( _
   ByVal name As String _
) As String
public virtual string GetString(
 string name
public: virtual String* GetString(
 String* name
public function GetString(
   name : String
) : String;


Name of the resource to search for.

Return Value

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


Exception Type Condition
ArgumentNullException The name parameter is a null reference (Nothing in Visual Basic).
InvalidOperationException The resource with the specified name is not a String or the current ResourceSet has been closed.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ResourceSet Class | ResourceSet Members | System.Resources Namespace | ResourceSet.GetString Overload List