次の方法で共有


SqlDatabaseTestClass.PrivilegedContext プロパティ

 

テスト実行を検証するために使用される特権コンテキストを取得または設定します。また、このプロパティは、各テストの事前テスト アクションと事後テスト アクションを検証および実行します。

名前空間:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
アセンブリ:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll 内)

構文

[BrowsableAttribute(false)]
protected ConnectionContext PrivilegedContext { get; set; }
protected:
[BrowsableAttribute(false)]
property ConnectionContext^ PrivilegedContext {
    ConnectionContext^ get();
    void set(ConnectionContext^ value);
}
[<BrowsableAttribute(false)>]
member PrivilegedContext : ConnectionContext with get, set
<BrowsableAttribute(False)>
Protected Property PrivilegedContext As ConnectionContext

プロパティ値

Type: Microsoft.Data.Tools.Schema.Sql.UnitTesting.ConnectionContext

ConnectionContext を返します。

解説

このプロパティは、InitializeTest が呼び出されると設定されます。このプロパティは、CleanupTest が呼び出されるとクリアされます。

参照

ConnectionContext
InitializeTest
CleanupTest
SqlDatabaseTestClass クラス
Microsoft.Data.Tools.Schema.Sql.UnitTesting 名前空間

トップに戻る