ResourceManager Constructor (Type)
Collapse the table of content
Expand the table of content

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.

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

'Declaration
Public Sub New ( _
	resourceSource As Type _
)

Parameters

resourceSource
Type: System.Type
A type from which the ResourceManager derives all information for finding .resources files.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft