Method GetObject
GetObject(string)
Returns the value of the specified non-string resource.
public override object GetObject(string name)
Parameters
name
stringThe name of the resource to get.
Returns
- object
The value of the resource localized for the caller's current culture settings. If an appropriate resource set exists but
name
cannot be found, the method returns null.
Exceptions
- ArgumentNullException
The
name
parameter is null.- MissingManifestResourceException
No usable set of localized resources has been found, and there are no default culture resources. For information about how to handle this exception, see the "Handling MissingManifestResourceException and MissingSatelliteAssemblyException Exceptions" section in the ResourceManager class topic.
- MissingSatelliteAssemblyException
The default culture's resources reside in a satellite assembly that could not be found. For information about how to handle this exception, see the "Handling MissingManifestResourceException and MissingSatelliteAssemblyException Exceptions" section in the ResourceManager class topic.