This documentation is archived and is not being maintained.

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 abstract DbConnection DataConnection { get; }
/** @property */
public abstract DbConnection get_DataConnection ()

public abstract function get DataConnection () : DbConnection

Property Value

A DbConnection object.
Show: