 | LoggerPushScopeProperty Method (String, Object) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic IDisposable PushScopeProperty(
string propertyName,
Object? propertyValue
)
Public Function PushScopeProperty (
propertyName As String,
propertyValue As Object
) As IDisposable
Dim instance As Logger
Dim propertyName As String
Dim propertyValue As Object
Dim returnValue As IDisposable
returnValue = instance.PushScopeProperty(propertyName,
propertyValue)
member PushScopeProperty :
propertyName : string *
propertyValue : Object -> IDisposable
Parameters
- propertyName
- Type: SystemString
Name of property - propertyValue
- Type: SystemObject
Value of property
Return Value
Type:
IDisposableA disposable object that removes the properties from logical context scope on dispose.
Remarks
See Also