Edit

Share via


UltimateResourceFallbackLocation Enum

Definition

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

C#
public enum UltimateResourceFallbackLocation
C#
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum UltimateResourceFallbackLocation
Inheritance
UltimateResourceFallbackLocation
Attributes

Fields

Name Value Description
MainAssembly 0

Fallback resources are located in the main assembly.

Satellite 1

Fallback resources are located in a satellite assembly.

Remarks

The UltimateResourceFallbackLocation enumeration is used with the NeutralResourcesLanguageAttribute.NeutralResourcesLanguageAttribute(String, UltimateResourceFallbackLocation) constructor to specify whether a 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 MainAssembly or no value to the NeutralResourcesLanguageAttribute attribute and resource manager cannot load a resource set that belongs to the default culture, it throws a MissingManifestResourceException exception. If you specify a value of Satellite to the NeutralResourcesLanguageAttribute and resource manager cannot load a resource set that belongs to the default culture, it throws a MissingSatelliteAssemblyException exception.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also