Share 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.SmartDevice.UnitTestFramework (in Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property DataConnection As DbConnection
'Usage
Dim instance As TestContext 
Dim value As DbConnection 

value = instance.DataConnection
public abstract DbConnection DataConnection { get; }
public:
virtual property DbConnection^ DataConnection {
    DbConnection^ get () abstract;
}
public abstract function get DataConnection () : DbConnection

Property Value

Type: System.Data.Common.DbConnection
A DbConnection object.

.NET Framework Security

See Also

Reference

TestContext Class

TestContext Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class