Export (0) Print
Expand All

AssemblyCultureAttribute Class

Specifies which culture the assembly supports.

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

System.Object
   System.Attribute
      System.Reflection.AssemblyCultureAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Assembly)>
NotInheritable Public Class AssemblyCultureAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyCultureAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Assembly)]
public __gc __sealed class AssemblyCultureAttribute : public
   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Assembly)
class AssemblyCultureAttribute 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 attribute is used by compilers to distinguish between a main assembly and a satellite assembly. A main assembly contains code and the neutral culture's resources. A satellite assembly contains only resources for a particular culture, as in [assembly:AssemblyCultureAttribute("de")]. Putting this attribute on an assembly and using something other than the empty string ("") for the culture name will make this assembly look like a satellite assembly, rather than a main assembly that contains executable code. Labeling a traditional code library with this attribute will break it, because no other code will be able to find the library's entry points at runtime.

For more detail, see the specifications for the common language runtime architecture, metadata, Microsoft intermediate language instruction set, file format, and Microsoft intermediate language assembly reference in the "Tool Developers Guide" folder of the SDK.

Requirements

Namespace: System.Reflection

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

AssemblyCultureAttribute Members | System.Reflection Namespace | Metadata and Self-Describing Components | Compiling to MSIL | Metadata Overview

Show:
© 2014 Microsoft