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()
备注
此方法首先释放现有执行上下文和特权上下文。 然后该方法会创建在运行 TestCleanupAction(如果已定义)时要使用的新的特权上下文。 最后,该方法将释放特权上下文。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。