SecurityRoleAttribute クラス
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

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

ロールをアプリケーションに追加したり、コンポーネントに関連付けるには SecurityRoleAttribute を使用します。SecurityRoleAttribute がアセンブリ全体に適用されると、アプリケーションの構成 (COM+ カタログ) にロールが存在するようになります。ロールのメンバを追加するには COM+ エクスプローラを使用します。
SecurityRoleAttribute をコンポーネントに適用すると、ロールがアプリケーション構成に存在するようになり、ターゲット コンポーネントがそのロールに関連付けられます。
既定では、作成したロールにメンバは存在しません。SetEveryoneAccess プロパティを true に設定すると、Everyone ユーザー グループが自動的にロールに追加されます。システムに対する制御が最小限になる全アクセス タイプのロールでは、この方法を使用することをお勧めします。
セキュリティ ロールは、コンポーネント レベルでインターフェイスごと、およびメソッドごとに指定できます。その他のメソッド属性の場合と同様に、現在、セキュリティ構成はインターフェイス定義とメソッド実装間で共有されません。


System.Attribute
System.EnterpriseServices.SecurityRoleAttribute


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


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