GetObject Method (String)
Collapse the table of content
Expand the table of content

ResourceSet.GetObject Method (String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

ExceptionCondition
ArgumentNullException

The name parameter is null.

InvalidOperationException

This ResourceSet has been closed.

ObjectDisposedException

The object has been disposed.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft