SecurityCriticalAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)
構文
<AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Module Or AttributeTargets.Class Or AttributeTargets.Struct Or AttributeTargets.Enum Or AttributeTargets.Constructor Or AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field Or AttributeTargets.Event Or AttributeTargets.Interface Or AttributeTargets.Delegate, AllowMultiple:=False, Inherited:=False)> _ Public NotInheritable Class SecurityCriticalAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)] public sealed class SecurityCriticalAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Module|AttributeTargets::Class|AttributeTargets::Struct|AttributeTargets::Enum|AttributeTargets::Constructor|AttributeTargets::Method|AttributeTargets::Property|AttributeTargets::Field|AttributeTargets::Event|AttributeTargets::Interface|AttributeTargets::Delegate, AllowMultiple=false, Inherited=false)] public ref class SecurityCriticalAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple=false, Inherited=false) */ public final class SecurityCriticalAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple=false, Inherited=false) public final class SecurityCriticalAttribute extends Attribute
セキュリティが重要な操作とは、Assert メソッドを使用し、コード アクセス セキュリティ チェックを抑制して行う特権の昇格、安全でないマネージ コードの呼び出しなど、コード アクセス セキュリティに影響する操作です。コードでセキュリティが重要な操作を実行するには、SecurityCriticalAttribute 属性をコードに適用する必要があります。セキュリティが重要なコードは、信頼性が一部しか確認されていないコードからアクセス可能であり、保護されたリソースや機能へのアクセスを提供する可能性があります。SecurityCriticalAttribute を適用したコードには、セキュリティに関する厳密な監査を行い、安全な実行環境で安全に使用できることを確認する必要があります。セキュリティが重要でない操作を透過的操作と呼びます。
アセンブリ レベルで SecurityCriticalAttribute を適用すると、このアセンブリは、セキュリティが重要なアセンブリとして識別されます。スコープ パラメータ Everything を設定すると、アセンブリ全体を、セキュリティが重要なアセンブリとして識別できます。
System.Attribute
System.Security.SecurityCriticalAttribute
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SecurityCriticalAttribute メンバ
System.Security 名前空間
SecurityTransparentAttribute
SecurityTreatAsSafeAttribute
- SecurityCriticalAttribute クラスのページへのリンク