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 安全性

请参见

参考

DatabaseTestClass 类

Microsoft.Data.Schema.UnitTesting 命名空间

ConnectionContext

InitializeTest

CleanupTest