Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

AdoNetAppender.CreateConnection�Method�

Creates an IDbConnection instance used to connect to the database.

[Visual�Basic]
Overridable�Protected�Function�CreateConnection( _
���ByVal connectionType�As�Type,�_
���ByVal connectionString�As�String�_
)�As�IDbConnection
[C#]
protected�virtual�IDbConnection�CreateConnection(
���TypeconnectionType,
���stringconnectionString
);

Parameters

connectionType
The Type of the IDbConnection object.
connectionString
The connectionString output from the ResolveConnectionString method.

Return Value

An IDbConnection instance with a valid connection string.

Remarks

This method is called whenever a new IDbConnection is needed (i.e. when a reconnect is necessary).

See Also

AdoNetAppender Class | log4net.Appender Namespace