 | TargetWithContextSerializeScopeContextProperty Method |
Take snapshot of a single object value from
ScopeContext dictionary
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxprotected virtual bool SerializeScopeContextProperty(
LogEventInfo logEvent,
string name,
Object? value,
out Object?? serializedValue
)
Protected Overridable Function SerializeScopeContextProperty (
logEvent As LogEventInfo,
name As String,
value As Object,
<OutAttribute> ByRef serializedValue As Object
) As Boolean
Dim logEvent As LogEventInfo
Dim name As String
Dim value As Object
Dim serializedValue As Object
Dim returnValue As Boolean
returnValue = Me.SerializeScopeContextProperty(logEvent,
name, value, serializedValue)
abstract SerializeScopeContextProperty :
logEvent : LogEventInfo *
name : string *
value : Object *
serializedValue : Object byref -> bool
override SerializeScopeContextProperty :
logEvent : LogEventInfo *
name : string *
value : Object *
serializedValue : Object byref -> bool
Parameters
- logEvent
- Type: NLogLogEventInfo
Log event - name
- Type: SystemString
ScopeContext Dictionary key - value
- Type: SystemObject
ScopeContext Dictionary value - serializedValue
- Type: SystemObject
Snapshot of ScopeContext property-value
Return Value
Type:
BooleanInclude object value in snapshot
See Also