Click or drag to resize

DatabaseTargetBuildConnectionString Method

Build the connectionstring from the properties.

Namespace:  NLog.Targets
Assembly:  NLog.Database (in NLog.Database.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
protected string BuildConnectionString(
	LogEventInfo logEvent
)

Parameters

logEvent
Type: NLogLogEventInfo
Event to render the layout inside the properties.

Return Value

Type: String
Remarks
Using ConnectionString at first, and falls back to the properties DBHost, DBUserName, DBPassword and DBDatabase
See Also