OdbcPermission.Add(String, String, KeyRestrictionBehavior) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定 連接字串 的存取權限加入現有權限狀態。
public:
override void Add(System::String ^ connectionString, System::String ^ restrictions, System::Data::KeyRestrictionBehavior behavior);
public override void Add(string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior);
override this.Add : string * string * System.Data.KeyRestrictionBehavior -> unit
Public Overrides Sub Add (connectionString As String, restrictions As String, behavior As KeyRestrictionBehavior)
參數
- connectionString
- String
允許的 連接字串。
- restrictions
- String
用來識別允許或禁止的 連接字串 參數的字串。
- behavior
- KeyRestrictionBehavior
這是其中一項 KeyRestrictionBehavior 價值。
備註
當你實作以下方法時,此方法會非常有用:
一個 .NET Framework 的資料提供者。
一個必須斷言資料存取權限的 API。
一個必須修改安全政策的管理工具或安裝程式。