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
- 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