Share via


DatabaseTestClass.PrivilegedContext Property

Gets or sets the privileged context that is used to verify a test execution. Also, this property verifies and executes pre-test and post-test actions for each test.

Namespace:  Microsoft.Data.Schema.UnitTesting
Assembly:  Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Protected Property PrivilegedContext As ConnectionContext
[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)

Property Value

Type: Microsoft.Data.Schema.UnitTesting.ConnectionContext
Returns a ConnectionContext.

Remarks

This property is populated when InitializeTest is called. This property is cleared when CleanupTest is called.

.NET Framework Security

See Also

Reference

DatabaseTestClass Class

Microsoft.Data.Schema.UnitTesting Namespace

ConnectionContext

InitializeTest

CleanupTest