| TargetWithContextSerializeScopeContextNestedState Method |
Take snapshot of a single object value from
ScopeContext nested states
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax protected virtual bool SerializeScopeContextNestedState(
LogEventInfo logEvent,
Object value,
out Object serializedValue
)
Protected Overridable Function SerializeScopeContextNestedState (
logEvent As LogEventInfo,
value As Object,
<OutAttribute> ByRef serializedValue As Object
) As Boolean
Dim logEvent As LogEventInfo
Dim value As Object
Dim serializedValue As Object
Dim returnValue As Boolean
returnValue = Me.SerializeScopeContextNestedState(logEvent,
value, serializedValue)
abstract SerializeScopeContextNestedState :
logEvent : LogEventInfo *
value : Object *
serializedValue : Object byref -> bool
override SerializeScopeContextNestedState :
logEvent : LogEventInfo *
value : Object *
serializedValue : Object byref -> bool
Parameters
- logEvent
- Type: NLogLogEventInfo
Log event - value
- Type: SystemObject
ScopeContext nested state value - serializedValue
- Type: SystemObject
Snapshot of ScopeContext stack item value
Return Value
Type:
BooleanInclude object value in snapshot
See Also