SecurityRoleAttribute コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SecurityRoleAttribute クラスの新しいインスタンスを初期化し、Role プロパティを設定します。
オーバーロード
| 名前 | 説明 |
|---|---|
| SecurityRoleAttribute(String) |
SecurityRoleAttribute クラスの新しいインスタンスを初期化し、Role プロパティを設定します。 |
| SecurityRoleAttribute(String, Boolean) |
SecurityRoleAttribute クラスの新しいインスタンスを初期化し、RoleプロパティとSetEveryoneAccessプロパティを設定します。 |
SecurityRoleAttribute(String)
SecurityRoleAttribute クラスの新しいインスタンスを初期化し、Role プロパティを設定します。
public:
SecurityRoleAttribute(System::String ^ role);
public SecurityRoleAttribute(string role);
new System.EnterpriseServices.SecurityRoleAttribute : string -> System.EnterpriseServices.SecurityRoleAttribute
Public Sub New (role As String)
パラメーター
- role
- String
アプリケーション、コンポーネント、インターフェイス、またはメソッドのセキュリティ ロール。
例
次のコード例は、この属性を使用して、ロールを、 ServicedComponent クラスを含むアセンブリに関連付ける方法を示しています。
// Create a security role for the component.
[assembly:SecurityRole("Manager")];
// Create a security role for the component.
[assembly: SecurityRole("Manager")]
' Create a security role for the component.
<Assembly: SecurityRole("Manager")>
適用対象
SecurityRoleAttribute(String, Boolean)
SecurityRoleAttribute クラスの新しいインスタンスを初期化し、RoleプロパティとSetEveryoneAccessプロパティを設定します。
public:
SecurityRoleAttribute(System::String ^ role, bool everyone);
public SecurityRoleAttribute(string role, bool everyone);
new System.EnterpriseServices.SecurityRoleAttribute : string * bool -> System.EnterpriseServices.SecurityRoleAttribute
Public Sub New (role As String, everyone As Boolean)
パラメーター
- role
- String
アプリケーション、コンポーネント、インターフェイス、またはメソッドのセキュリティ ロール。
- everyone
- Boolean
true 新しく作成されたロールに Everyone ユーザー グループをユーザーとして追加することを要求する場合。それ以外の場合は false。