Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

System.Object
   System.Attribute
      System.Resources.NeutralResourcesLanguageAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Assembly)>
NotInheritable Public Class NeutralResourcesLanguageAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class NeutralResourcesLanguageAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Assembly)]
public __gc __sealed class NeutralResourcesLanguageAttribute :
   public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Assembly)
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.

Remarks

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.

Requirements

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.