次の方法で共有


AssemblyCultureAttribute クラス

アセンブリがサポートしているカルチャを指定します。

この型のすべてのメンバの一覧については、AssemblyCultureAttribute メンバ を参照してください。

System.Object
   System.Attribute
      System.Reflection.AssemblyCultureAttribute

<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

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

この属性は、メイン アセンブリとサテライト アセンブリを区別するために、コンパイラで使用します。メイン アセンブリは、コードとニュートラル カルチャのリソースを格納します。サテライト アセンブリは、 [assembly:AssemblyCultureAttribute("de")] のように、特定のカルチャのリソースだけを格納します。この属性をアセンブリに設定し、カルチャ名に空の文字列 ("") 以外を使用すると、このアセンブリは、実行可能コードを格納するメイン アセンブリではなく、サテライト アセンブリのように見えます。従来のコード ライブラリにこの属性を付けると破損します。これは、他のコードがライブラリのエントリ ポイントを実行時に見つけることができないためです。

詳細については、SDK の Tool Developers Guide フォルダで、共通言語ランタイム アーキテクチャ、メタデータ、MSIL (Microsoft Intermediate Language) 命令セット、ファイル形式、MSIL アセンブリ リファレンスの各仕様を参照してください。

必要条件

名前空間: System.Reflection

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

アセンブリ: Mscorlib (Mscorlib.dll 内)

参照

AssemblyCultureAttribute メンバ | System.Reflection 名前空間 | メタデータと自己言及的なコンポーネント | MSIL へのコンパイル | メタデータの概要