Menu

AccessErrorLogProvider

Steven Bey
There is a newer version of this page. You can find it here.

AccessErrorLogProvider

AccessErrorLogProviderConstructor(String)

Initialises a new instance of the AccessErrorLogProviderclass.

Syntax

public AccessErrorLogProvider(
    string connectionString = @"|DataDirectory|\Elfar.mdb"
)

Parameters

connectionString

Type: System.String
The connection string or the name of the <connectionStrings> item to be used to open the Access database.

Remarks

AccessErrorLogProvider manages storage of error log information in an Access database.

Examples

The following example shows the most basic instantiation of the AccessErrorLogProvider, which uses either the 'Elfar' <connectionStrings> item or the first item in the <connectionStrings> collection (if defined).

var provider = new AccessErrorLogProvider();

The following example shows the name of the <connectionStrings> item being specified.

var provider = new AccessErrorLogProvider(connectionString: @"Logs");

The following example shows the connection string being specified.

var provider = new AccessErrorLogProvider(connectionString: @"|DataDirectory|\Logs.mdb");

MongoDB Logo MongoDB