DatabaseTestClass.PrivilegedContext 屬性
取得或設定有權限的內容,這個內容是用來驗證測試執行。 此外,這個屬性也可以驗證和執行每個測試的測試前動作與測試後動作。
命名空間: Microsoft.Data.Schema.UnitTesting
組件: Microsoft.Data.Schema.UnitTesting (在 Microsoft.Data.Schema.UnitTesting.dll 中)
語法
'宣告
<BrowsableAttribute(False)> _
Protected Property PrivilegedContext As ConnectionContext
Get
Set
[BrowsableAttribute(false)]
protected ConnectionContext PrivilegedContext { get; set; }
[BrowsableAttribute(false)]
protected:
property ConnectionContext^ PrivilegedContext {
ConnectionContext^ get ();
void set (ConnectionContext^ value);
}
[<BrowsableAttribute(false)>]
member PrivilegedContext : ConnectionContext with get, set
function get PrivilegedContext () : ConnectionContext
function set PrivilegedContext (value : ConnectionContext)
屬性值
型別:Microsoft.Data.Schema.UnitTesting.ConnectionContext
傳回 ConnectionContext。
備註
呼叫 InitializeTest 時,會填入這個屬性。 呼叫 CleanupTest 時會清除這個屬性。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。