AdoNetAppender ResolveConnectionString Method | Apache log4net™ SDK Documentation

Resolves the connection string from the ConnectionString, ConnectionStringName, or AppSettingsKey property.

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

C#
VB
C++
F#
Copy

    protected virtual string ResolveConnectionString(
    	out string connectionStringContext
    )

    Protected Overridable Function ResolveConnectionString (
    	<OutAttribute> ByRef connectionStringContext As String
    ) As String

    protected:
    virtual String^ ResolveConnectionString(
    	[OutAttribute] String^% connectionStringContext
    )

    abstract ResolveConnectionString :
            connectionStringContext : string byref -> string
    override ResolveConnectionString :
            connectionStringContext : string byref -> string

#### Parameters

connectionStringContext
  Type: System
  String
  Additional information describing the connection string.

#### Return Value

Type: String
A connection string used to connect to the database.
Remarks

ConnectiongStringName is only supported on .NET 2.0 and higher.
See Also

#### Reference

AdoNetAppender Class
log4net.Appender Namespace