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)


Public MustOverride ReadOnly Property DataConnection As DbConnection
public abstract DbConnection DataConnection { get; }
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


TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class