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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za