AdoNetAppender SendBuffer Method (IDbTransaction, LoggingEvent ) | Apache log4net™ SDK Documentation

Writes the events to the database using the transaction specified.

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

C#
VB
C++
F#
Copy

    protected virtual void SendBuffer(
    	IDbTransaction dbTran,
    	LoggingEvent[] events
    )

    Protected Overridable Sub SendBuffer (
    	dbTran As IDbTransaction,
    	events As LoggingEvent()
    )

    protected:
    virtual void SendBuffer(
    	IDbTransaction^ dbTran,
    	array<LoggingEvent^>^ events
    )

    abstract SendBuffer :
            dbTran : IDbTransaction *
            events : LoggingEvent[] -> unit
    override SendBuffer :
            dbTran : IDbTransaction *
            events : LoggingEvent[] -> unit

#### Parameters

dbTran
  Type: System.Data
  IDbTransaction
  The transaction that the events will be executed under.
events
  Type:
  log4net.Core
  LoggingEvent
  The array of events to insert into the database.

Remarks

The transaction argument can be null if the appender has been configured not to use transactions. See UseTransactions property for more information.

See Also

#### Reference

AdoNetAppender Class
SendBuffer Overload
log4net.Appender Namespace