NeutralResourcesLanguageAttribute Constructors
Definition
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
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)
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)
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
.
location
is not a member of UltimateResourceFallbackLocation.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈