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

NeutralResourcesLanguageAttribute Constructor (String, UltimateResourceFallbackLocation)

Initializes a new instance of the NeutralResourcesLanguageAttribute class with the specified ultimate resource fallback location.

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

'Declaration
Public Sub New ( _
	cultureName As String, _
	location As UltimateResourceFallbackLocation _
)

Parameters

cultureName
Type: System.String

The name of the culture that the current assembly's neutral resources were written in.

location
Type: System.Resources.UltimateResourceFallbackLocation

One of the enumeration values that indicates the location from which to retrieve neutral fallback resources.

ExceptionCondition
ArgumentNullException

cultureName is Nothing.

ArgumentException

location is not a member of UltimateResourceFallbackLocation.

Use the NeutralResourcesLanguageAttribute constructor with the UltimateResourceFallbackLocation enumeration to specify whether the ResourceManager class is to retrieve neutral fallback resources from the main app assembly (the default), or from a satellite assembly specified by the CurrentUICulture and the FallbackLocation properties.

For a detailed list of culture names, see National Language Support (NLS) API Reference at the Go Global Developer Center.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft