AssemblyDelaySignAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Assembly, Inherited:=False)> _ Public NotInheritable Class AssemblyDelaySignAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Assembly, Inherited=false)] public sealed class AssemblyDelaySignAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Assembly, Inherited=false)] public ref class AssemblyDelaySignAttribute sealed : public Attribute

この属性をアセンブリで使用すると、Sn.exe ユーティリティなどの署名ツールによって後で書き込まれる署名のために、領域が確保されます。遅延署名は、[assembly:AssemblyDelaySignAttribute(true)] のように、アセンブリの作成者が署名を生成するために使用する秘密キーにアクセスできない場合に使用します。
System.Runtime.CompilerServices のクラスはコンパイラ専用です。コンパイラをビルドする場合以外は使用しないでください。
詳細については、共通言語基盤 (CLI: Common Language Infrastructure) のドキュメント、特に「Partition II: Metadata Definition and Semantics」を参照してください。このドキュメントは、http://msdn.microsoft.com/net/ecma/ および http://www.ecma-international.org/publications/standards/Ecma-335.htm で入手できます。

AssemblyDelaySignAttribute 属性と AssemblyKeyFileAttribute を使用するコード例を次に示します。この例をコンパイルするには、厳密名ツール (Sn.exe) を使用して、TestPublicKey.snk という名前で厳密な名前のキー ファイルを作成する必要があります。
sn -k TestPublicKey.snk
この例を .dll としてコンパイルします。コマンド ラインからコンパイルする場合は、/t:library オプション (C# または Visual Basic の場合) または /LD リンカ オプション (Visual C++ の場合) を使用します。
Imports System Imports System.Reflection <assembly:AssemblyDelaySignAttribute(true)> <assembly:AssemblyKeyFileAttribute("TestPublicKey.snk")> Namespace DelaySign Public class Test End Class End Namespace

System.Attribute
System.Reflection.AssemblyDelaySignAttribute


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- AssemblyDelaySignAttribute クラスのページへのリンク