Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ResourceManager Constructor (Type)

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)

public ResourceManager(
	Type resourceSource
)

Parameters

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

ExceptionCondition
ArgumentNullException

The resourceSource parameter is null.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft