log4net SDK Reference |

# AdoNetAppender.Connection Property

Gets or sets the underlying IDbConnection.

[Visual Basic]
Protected Property Connection As IDbConnection
[C#]
protected System.Data.IDbConnection Connection {get; set;}

#### Property Value

The underlying IDbConnection.

#### Remarks

AdoNetAppender creates a IDbConnection to insert logging events into a database. Classes deriving from AdoNetAppender can use this property to get or set this IDbConnection. Use the underlying IDbConnection returned from Connection if you require access beyond that which AdoNetAppender provides.

#### See Also

AdoNetAppender Class | log4net.Appender Namespace