| LoggerPushScopePropertiesTValue Method (IReadOnlyCollectionKeyValuePairString, TValue) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public IDisposable PushScopeProperties<TValue>(
IReadOnlyCollection<KeyValuePair<string, TValue>> scopeProperties
)
Public Function PushScopeProperties(Of TValue) (
scopeProperties As IReadOnlyCollection(Of KeyValuePair(Of String, TValue))
) As IDisposable
Dim instance As Logger
Dim scopeProperties As IReadOnlyCollection(Of KeyValuePair(Of String, TValue))
Dim returnValue As IDisposable
returnValue = instance.PushScopeProperties(scopeProperties)
member PushScopeProperties :
scopeProperties : IReadOnlyCollection<KeyValuePair<string, 'TValue>> -> IDisposable
Parameters
- scopeProperties
- Type: System.Collections.GenericIReadOnlyCollectionKeyValuePairString, TValue
Properties being added to the scope dictionary
Type Parameters
- TValue
Return Value
Type:
IDisposableA disposable object that removes the properties from logical context scope on dispose.
Remarks See Also