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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UnitTesting Namespace