AdoNetAppenderParameter Class | Apache log4net™ SDK Documentation

Parameter type used by the AdoNetAppender.
Inheritance Hierarchy

System
Object
log4net.Appender
AdoNetAppenderParameter

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

C#
VB
C++
F#
Copy

    public class AdoNetAppenderParameter

    Public Class AdoNetAppenderParameter

    public ref class AdoNetAppenderParameter

    type AdoNetAppenderParameter =  class end

The AdoNetAppenderParameter type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| AdoNetAppenderParameter | Initializes a new instance of the AdoNetAppenderParameter class.

Top
Properties

| Name | Description
--- | --- | ---
| DbType | Gets or sets the database type for this parameter.
| Layout | Gets or sets the IRawLayout to use to render the logging event into an object for this parameter.
| ParameterName | Gets or sets the name of this parameter.
| Precision | Gets or sets the precision for this parameter.
| Scale | Gets or sets the scale for this parameter.
| Size | Gets or sets the size for this parameter.

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| FormatValue | Renders the logging event and set the parameter value in the command.
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| Prepare | Prepare the specified database command object.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

This class provides the basic database parameter properties as defined by the IDbDataParameter interface.

This type can be subclassed to provide database specific functionality. The two methods that are called externally are Prepare(IDbCommand) and FormatValue(IDbCommand, LoggingEvent).

See Also

#### Reference

log4net.Appender Namespace