Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NeutralResourcesLanguageAttribute Constructors

Definition

Namespace:
System.Resources
Assemblies:
mscorlib.dll, System.Resources.ResourceManager.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Resources.ResourceManager.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Initializes a new instance of the NeutralResourcesLanguageAttribute class.

Overloads

Name Description
NeutralResourcesLanguageAttribute(String)

Initializes a new instance of the NeutralResourcesLanguageAttribute class.

NeutralResourcesLanguageAttribute(String, UltimateResourceFallbackLocation)

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

NeutralResourcesLanguageAttribute(String)

Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs

Initializes a new instance of the NeutralResourcesLanguageAttribute class.

public:
 NeutralResourcesLanguageAttribute(System::String ^ cultureName);
public NeutralResourcesLanguageAttribute(string cultureName);
new System.Resources.NeutralResourcesLanguageAttribute : string -> System.Resources.NeutralResourcesLanguageAttribute
Public Sub New (cultureName As String)

Parameters

cultureName
String

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

Exceptions

The cultureName parameter is null.

Remarks

For a detailed list of culture names available on Windows systems, see the Language tag column in the list of language/region names supported by Windows. Culture names follow the standard defined by BCP 47.

See also

Applies to

NeutralResourcesLanguageAttribute(String, UltimateResourceFallbackLocation)

Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs
Source:
NeutralResourcesLanguageAttribute.cs

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

public:
 NeutralResourcesLanguageAttribute(System::String ^ cultureName, System::Resources::UltimateResourceFallbackLocation location);
public NeutralResourcesLanguageAttribute(string cultureName, System.Resources.UltimateResourceFallbackLocation location);
new System.Resources.NeutralResourcesLanguageAttribute : string * System.Resources.UltimateResourceFallbackLocation -> System.Resources.NeutralResourcesLanguageAttribute
Public Sub New (cultureName As String, location As UltimateResourceFallbackLocation)

Parameters

cultureName
String

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

location
UltimateResourceFallbackLocation

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

Exceptions

cultureName is null.

Remarks

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 available on Windows systems, see the Language tag column in the list of language/region names supported by Windows. Culture names follow the standard defined by BCP 47.

See also

Applies to


Feedback

Was this page helpful?