DBDataPermission.Add(String, String, KeyRestrictionBehavior) メソッド

定義

DBDataPermission の既存の状態に、指定した接続文字列が表すアクセス権を追加します。

public:
 virtual void Add(System::String ^ connectionString, System::String ^ restrictions, System::Data::KeyRestrictionBehavior behavior);
public virtual void Add (string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior);
abstract member Add : string * string * System.Data.KeyRestrictionBehavior -> unit
override this.Add : string * string * System.Data.KeyRestrictionBehavior -> unit
Public Overridable Sub Add (connectionString As String, restrictions As String, behavior As KeyRestrictionBehavior)

パラメーター

connectionString
String

使用できる接続文字列。

restrictions
String

接続文字列のパラメーターが許可されるか禁止されるかを識別する文字列。

behavior
KeyRestrictionBehavior

KeyRestrictionBehavior プロパティの 1 つ。

注釈

このメソッドは、次の実装時に役立ちます。

  • .NET Framework データ プロバイダー。

  • データ アクセス許可をアサートする必要がある API。

  • セキュリティ ポリシーを変更する必要がある管理ツールまたはインストール プログラム。

  • 複数のルールを指定すると、より制限の厳しいルールが選択されます。

適用対象

こちらもご覧ください