AdoNetAppender CommandText Property | Apache log4net™ SDK Documentation

Gets or sets the command text that is used to insert logging events into the database.

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

C#
VB
C++
F#
Copy

    public string CommandText { get; set; }

    Public Property CommandText As String
    	Get
    	Set

    public:
    property String^ CommandText {
    	String^ get ();
    	void set (String^ value);
    }

    member CommandText : string with get, set

#### Property Value

Type: String
The command text used to insert logging events into the database.
Remarks

Either the text of the prepared statement or the name of the stored procedure to execute to write into the database.

The CommandType property determines if this text is a prepared statement or a stored procedure.

If this property is not set, the command text is retrieved by invoking GetLogStatement(LoggingEvent).

See Also

#### Reference

AdoNetAppender Class
log4net.Appender Namespace