| LoggerPushScopePropertyTValue Method (String, TValue) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public IDisposable PushScopeProperty<TValue>(
string propertyName,
TValue propertyValue
)
Public Function PushScopeProperty(Of TValue) (
propertyName As String,
propertyValue As TValue
) As IDisposable
Dim instance As Logger
Dim propertyName As String
Dim propertyValue As TValue
Dim returnValue As IDisposable
returnValue = instance.PushScopeProperty(propertyName,
propertyValue)
member PushScopeProperty :
propertyName : string *
propertyValue : 'TValue -> IDisposable
Parameters
- propertyName
- Type: SystemString
Name of property - propertyValue
- 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 See Also