| AspNetLayoutMultiValueRendererBaseSerializePairs Method |
Serialize multiple key/value pairs
Namespace:
NLog.Web.LayoutRenderers
Assemblies:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
NLog.Web (in NLog.Web.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax protected void SerializePairs(
IEnumerable<KeyValuePair<string, string>> pairs,
StringBuilder builder,
LogEventInfo logEvent
)
Protected Sub SerializePairs (
pairs As IEnumerable(Of KeyValuePair(Of String, String)),
builder As StringBuilder,
logEvent As LogEventInfo
)
Dim pairs As IEnumerable(Of KeyValuePair(Of String, String))
Dim builder As StringBuilder
Dim logEvent As LogEventInfo
Me.SerializePairs(pairs, builder,
logEvent)
member SerializePairs :
pairs : IEnumerable<KeyValuePair<string, string>> *
builder : StringBuilder *
logEvent : LogEventInfo -> unit
Parameters
- pairs
- Type: System.Collections.GenericIEnumerableKeyValuePairString, String
The key/value pairs. - builder
- Type: System.TextStringBuilder
Add to this builder. - logEvent
- Type: NLogLogEventInfo
Log event for rendering separators.
See Also