共用方式為


DatabaseTestClass.CleanupTest 方法

由單元測試類別呼叫。

命名空間:  Microsoft.Data.Schema.UnitTesting
組件:  Microsoft.Data.Schema.UnitTesting (在 Microsoft.Data.Schema.UnitTesting.dll 中)

語法

'宣告
Protected Sub CleanupTest
protected void CleanupTest()
protected:
void CleanupTest()
member CleanupTest : unit -> unit 
protected function CleanupTest()

備註

這個方法會先處置 (Dispose) 現有執行內容和授權的內容。 此方法接著會建立新的授權內容以供執行 TestCleanupAction (如果已定義) 時使用。 最後,方法會處置有權限的內容。

.NET Framework 安全性

請參閱

參考

DatabaseTestClass 類別

Microsoft.Data.Schema.UnitTesting 命名空間

TestCleanupAction