AdoNetAppender CommandType Property | Apache log4net™ SDK Documentation

Gets or sets the command type to execute.

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

C#
VB
C++
F#
Copy

    public CommandType CommandType { get; set; }

    Public Property CommandType As CommandType
    	Get
    	Set

    public:
    property CommandType CommandType {
    	CommandType get ();
    	void set (CommandType value);
    }

    member CommandType : CommandType with get, set

#### Property Value

Type: CommandType
The command type to execute.
Remarks

This value may be either Text (System.Data.CommandType.Text) to specify that the CommandText is a prepared statement to execute, or StoredProcedure (System.Data.CommandType.StoredProcedure) to specify that the CommandText property is the name of a stored procedure to execute.

The default value is Text (System.Data.CommandType.Text).

See Also

#### Reference

AdoNetAppender Class
log4net.Appender Namespace