![](../icons/../../NLogo.gif) | ScopeContextPushProperty Method (String, Object) |
Updates the logical scope context with provided property
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntaxpublic static IDisposable PushProperty(
string key,
Object value
)
Public Shared Function PushProperty (
key As String,
value As Object
) As IDisposable
Dim key As String
Dim value As Object
Dim returnValue As IDisposable
returnValue = ScopeContext.PushProperty(key,
value)
static member PushProperty :
key : string *
value : Object -> IDisposable
Parameters
- key
- Type: SystemString
Name of property - value
- Type: SystemObject
Value of property
Return Value
Type:
IDisposableA disposable object that removes the properties from logical context scope on dispose.
RemarksScope dictionary keys are case-insensitive
See Also