Database.Connection Property

Gets the current connection to a database.

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

'Declaration
Public ReadOnly Property Connection As DbConnection
	Get
'Usage
Dim instance As Database
Dim value As DbConnection

value = instance.Connection

Property Value

Type: System.Data.Common.DbConnection
The connection.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show: