System.Resources.UltimateResourceFallbackLocation Enumeration

Specifies whether a System.Resources.ResourceManager object looks for the resources of the app's default culture in the main assembly or in a satellite assembly.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum UltimateResourceFallbackLocation

Remarks

The System.Resources.UltimateResourceFallbackLocation enumeration is used with the NeutralResourcesLanguageAttribute.#ctor(string, UltimateResourceFallbackLocation) constructor to specify whether a System.Resources.ResourceManager object retrieves the resources of the app's default culture from the main app assembly (the default), or from a satellite assembly. In a localized application, the resources of the default culture are used if no culture-specific resources are found after using the resource fallback process. For more information, see the "Resource Fallback Process" section in Packaging and Deploying Resources.

If you specify a value of UltimateResourceFallbackLocation.MainAssembly or no value to the System.Resources.NeutralResourcesLanguageAttribute attribute and resource manager cannot load a resource set that belongs to the default culture, it throws a System.Resources.MissingManifestResourceException exception. If you specify a value of UltimateResourceFallbackLocation.Satellite to the System.Resources.NeutralResourcesLanguageAttribute and resource manager cannot load a resource set that belongs to the default culture, it throws a System.Resources.MissingSatelliteAssemblyException exception.

Members

Member NameDescription
MainAssembly

Fallback resources are located in the main assembly.

Satellite

Fallback resources are located in a satellite assembly.

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0