Share via


DatabaseTestClass.PrivilegedContext Property

Gets or sets the privileged context used to verify test execution and execute and verify the pre and post-test actions for each test.

Namespace:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Protected Property PrivilegedContext As ConnectionContext
'Usage
Dim value As ConnectionContext

value = Me.PrivilegedContext

Me.PrivilegedContext = value
[BrowsableAttribute(false)]
protected ConnectionContext PrivilegedContext { get; set; }
[BrowsableAttribute(false)]
protected:
property ConnectionContext^ PrivilegedContext {
    ConnectionContext^ get ();
    void set (ConnectionContext^ value);
}
protected function get PrivilegedContext () : ConnectionContext
protected function set PrivilegedContext (value : ConnectionContext)

Property Value

Type: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.ConnectionContext

Remarks

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

Permissions

See Also

Reference

DatabaseTestClass Class

DatabaseTestClass Members

Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace