System.Resources.ResourceManager Members

The members of System.Resources.ResourceManager are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Resources.ResourceManager class that looks up resources in satellite assemblies based on information from the specified type object.

Initializes a new instance of the System.Resources.ResourceManager class that looks up resources contained in files with the specified root name in the given assembly.

Initializes a new instance of the System.Resources.ResourceManager class that uses a specified System.Resources.ResourceSet class to look up resources contained in files with the specified root name in the given assembly.

Protected Constructors

Initializes a new instance of the System.Resources.ResourceManager class with default values.

Public Fields

static readonly
HeaderVersionNumberint (1).

Specifies the version of resource file headers that the current implementation of System.Resources.ResourceManager can interpret and produce.

static readonly
MagicNumberint (-1091581234).

Holds the number used to identify resource files.

Protected Fields

BaseNameFieldstring.

Specifies the root name of the resource files that the System.Resources.ResourceManager searches for resources.

MainAssemblySystem.Reflection.Assembly.

Specifies the main assembly that contains the resources.

ResourceSetsHashtable.

Contains a Hashtable that returns a mapping from cultures to System.Resources.ResourceSet objects.

Public Properties

[read-only]
BaseNamestring.

Gets the root name of the resource files that the System.Resources.ResourceManager searches for resources.

IgnoreCasebool.

Gets or sets a value that indicates whether the resource manager allows case-insensitive resource lookups in the ResourceManager.GetString(string) and ResourceManager.GetObject(string) methods.

[read-only]
ResourceSetTypeType.

Gets the type of the resource set object that the resource manager uses to construct a System.Resources.ResourceSet object.

Protected Properties

FallbackLocationUltimateResourceFallbackLocation.

Gets or sets the location from which to retrieve default fallback resources.

Public Methods

static
CreateFileBasedResourceManager(string, string, Type) : ResourceManager

Returns a System.Resources.ResourceManager object that searches a specific directory instead of an assembly manifest for resources.

GetObject(string) : object

Returns the value of the specified non-string resource.

GetObject(string, System.Globalization.CultureInfo) : object

Gets the value of the specified non-string resource localized for the specified culture.

GetResourceSet(System.Globalization.CultureInfo, bool, bool) : ResourceSet

Retrieves the resource set for a particular culture.

GetStream(string) : System.IO.UnmanagedMemoryStream

Returns an unmanaged memory stream object from the specified resource.

GetStream(string, System.Globalization.CultureInfo) : System.IO.UnmanagedMemoryStream

Returns an unmanaged memory stream object from the specified resource, using the specified culture.

GetString(string) : string

Returns the value of the specified string resource.

GetString(string, System.Globalization.CultureInfo) : string

Returns the value of the string resource localized for the specified culture.

ReleaseAllResources()

Tells the resource manager to call the ResourceSet.Close method on all System.Resources.ResourceSet objects and release all resources.

Protected Methods

static
GetNeutralResourcesLanguage(System.Reflection.Assembly) : System.Globalization.CultureInfo

Returns culture-specific information for the main assembly's default resources by retrieving the value of the System.Resources.NeutralResourcesLanguageAttribute attribute on a specified assembly.

GetResourceFileName(System.Globalization.CultureInfo) : string

Generates the name of the resource file for the given System.Globalization.CultureInfo object.

static
GetSatelliteContractVersion(System.Reflection.Assembly) : Version

Returns the version specified by the System.Resources.SatelliteContractVersionAttribute attribute in the given assembly.

InternalGetResourceSet(System.Globalization.CultureInfo, bool, bool) : ResourceSet

Provides the implementation for finding a resource set.