ResourceSet.GetObject Method (String)

 

Searches for a resource object with the specified name.

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

public virtual object GetObject(
	string name
)

Parameters

name
Type: System.String

Case-sensitive name of the resource to search for.

Return Value

Type: System.Object

The requested resource.

Exception Condition
ArgumentNullException

The name parameter is null.

ObjectDisposedException

The object has been closed or disposed.

The name of the resource object is case sensitive. For a case-insensitive search, use GetObject.

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