 | ScopeContextPushPropertiesTValue Method (IReadOnlyCollectionKeyValuePairString, TValue) |
Updates the logical scope context with provided properties
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static IDisposable PushProperties<TValue>(
IReadOnlyCollection<KeyValuePair<string, TValue>> properties
)
Public Shared Function PushProperties(Of TValue) (
properties As IReadOnlyCollection(Of KeyValuePair(Of String, TValue))
) As IDisposable
Dim properties As IReadOnlyCollection(Of KeyValuePair(Of String, TValue))
Dim returnValue As IDisposable
returnValue = ScopeContext.PushProperties(properties)
static member PushProperties :
properties : IReadOnlyCollection<KeyValuePair<string, 'TValue>> -> IDisposable
Parameters
- properties
- 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.
RemarksScope dictionary keys are case-insensitive
See Also