| ScopeContextPushPropertyTValue Method (String, TValue) |
Updates the logical scope context with provided property
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static IDisposable PushProperty<TValue>(
string key,
TValue value
)
Public Shared Function PushProperty(Of TValue) (
key As String,
value As TValue
) As IDisposable
Dim key As String
Dim value As TValue
Dim returnValue As IDisposable
returnValue = ScopeContext.PushProperty(key,
value)
static member PushProperty :
key : string *
value : 'TValue -> IDisposable
Parameters
- key
- Type: SystemString
Name of property - value
- Type: TValue
Value of property
Type Parameters
- TValue
Return Value
Type:
IDisposableA disposable object that removes the properties from logical context scope on dispose.
Remarks Scope dictionary keys are case-insensitive
See Also