AdoNetAppender Connection Property | Apache log4net™ SDK Documentation

Gets or sets the underlying IDbConnection.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected IDbConnection Connection { get; set; }

    Protected Property Connection As IDbConnection
    	Get
    	Set

    protected:
    property IDbConnection^ Connection {
    	IDbConnection^ get ();
    	void set (IDbConnection^ value);
    }

    member Connection : IDbConnection with get, set

#### Property Value

Type: IDbConnection
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

#### Reference

AdoNetAppender Class
log4net.Appender Namespace