log4net SDK Reference |

# AdoNetAppender.CommandType Property

Gets or sets the command type to execute.

[Visual Basic]
Public Property CommandType As CommandType
[C#]
public System.Data.CommandType CommandType {get; set;}

#### Property Value

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

AdoNetAppender Class | log4net.Appender Namespace