Export (0) Print
Expand All

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
[C#]
public virtual string GetString(
 string name
);
[C++]
public: virtual String* GetString(
 String* name
);
[JScript]
public function GetString(
   name : String
) : String;

Parameters

name
Name of the resource to search for.

Return Value

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

Exceptions

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.

Requirements

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

Show:
© 2014 Microsoft