ResourceManager Constructor (Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a ResourceManager that looks up resources in satellite assemblies based on information from the specified Type.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- resourceSource
- Type: System.Type
A type from which the ResourceManager derives all information for finding .resources files.
| Exception | Condition |
|---|---|
| ArgumentNullException | The resourceSource parameter is Nothing. |
| ArgumentException | assembly is not a run-time object. |
The ResourceManager infers the assembly, the base name, and a namespace for.resources files from the Type. The ResourceManager assumes you will be using satellite assemblies and want to use the default ResourceSet class. Given a type such as MyCompany.MyProduct.MyType, the ResourceManager will look for a .resources file (in the main assembly and satellite assemblies) named "MyCompany.MyProduct.MyType.[culture name.]resources" in the assembly that defines MyType.