Compartilhar via


TestContext.DataConnection Property

When overridden in a derived class, gets the current data connection when the test is used for data driven testing.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property DataConnection As DbConnection
public abstract DbConnection DataConnection { get; }
public:
virtual property DbConnection^ DataConnection {
    DbConnection^ get () abstract;
}
abstract DataConnection : DbConnection with get
abstract function get DataConnection () : DbConnection

Property Value

Type: DbConnection
A DbConnection object.

.NET Framework Security

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class