Looks up a String value for a resource given its name.
[Visual Basic] Overridable Public 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;
The String value of a resource.
Exception Type | Condition |
---|---|
ArgumentNullException | If name is a null reference (in Visual Basic Nothing). |
InvalidOperationException | If the value of the resource is not a String or if this ResourceSet has been closed. |
ResourceSet Class | ResourceSet Members | System.Resources Namespace