ערוך

שתף באמצעות


NeutralResourcesLanguageAttribute Constructors

Definition

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)

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

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