GacIdentityPermissionAttribute コンストラクタ
アセンブリ: mscorlib (mscorlib.dll 内)



コンストラクタは、基本クラスを呼び出して SecurityAction 値を検証します。
このコンストラクタは、SecurityAction (たとえば、Demand) を GacIdentityPermission に関連付けます。
セキュリティ属性によって宣言されたセキュリティ情報は、属性ターゲットのメタデータに格納され、実行時にシステムによってアクセスされます。セキュリティ属性は宣言セキュリティにだけ使用されます。強制セキュリティの場合は、GacIdentityPermission を使用します。

次に示すのは、GacIdentityPermissionAttribute コンストラクタを使用して呼び出し元プログラムにグローバル アセンブリ キャッシュへの登録を要求するコード例です。このコード例は、GacIdentityPermissionAttribute クラスのトピックで取り上げているコード例の一部分です。
' Demand that the calling program be in the global assembly cache. <GacIdentityPermissionAttribute(SecurityAction.Demand)> _ Public Class Class1
// Demand that the calling program be in the global assembly cache. [GacIdentityPermissionAttribute(SecurityAction.Demand)] public class Class1

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


- GacIdentityPermissionAttribute コンストラクタのページへのリンク