 | LoggerPushScopePropertiesTValue Method (IReadOnlyCollectionKeyValuePairString, TValue) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic 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