This documentation is archived and is not being maintained.

NeutralResourcesLanguageAttribute Class

Informs the ResourceManager of the neutral culture of an assembly. This class cannot be inherited.

For a list of all members of this type, see NeutralResourcesLanguageAttribute Members.


[Visual Basic]
NotInheritable Public Class NeutralResourcesLanguageAttribute
   Inherits Attribute
public sealed class NeutralResourcesLanguageAttribute : Attribute
public __gc __sealed class NeutralResourcesLanguageAttribute :
   public Attribute
class NeutralResourcesLanguageAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The NeutralResourcesLanguageAttribute informs the ResourceManager of the language used to write the neutral culture's resources for an assembly. When looking up resources in the same culture as the neutral resources language, the ResourceManager will automatically use the resources located in the main assembly, instead of searching for a satellite assembly with the current user interface culture for the current thread. This will improve lookup performance for the first resource you load, and can reduce your working set.

Note   Apply this attribute to your main assembly, passing it the name of the neutral language that will work with your main assembly.


Namespace: System.Resources

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

NeutralResourcesLanguageAttribute Members | System.Resources Namespace