パラメータ
- name
- The name of the resource to retrieve.
戻り値の型
The value of the resource localized for the caller's current UI culture, or null 参照 (Visual Basicでは Nothing) if name cannot be found in a resource set.
例外 | 解説 |
---|---|
System.ArgumentNullException | The name parameter is null 参照 (Visual Basicでは Nothing). |
System.InvalidOperationException | The value of the specified resource is not a string. |
System.Resources.MissingManifestResourceException | No usable set of resources has been found, and there are no resources for the default culture. For information about how to handle this exception, see the "Handling MissingManifestResourceException and MissingSatelliteAssemblyException Exceptions" section in the System.Resources.ResourceManager class topic. |
System.Resources.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 System.Resources.ResourceManager class topic. |