Share via


ILogProvider.OpenMappedContext(String, String) Method

Definition

Opens a mapped diagnostics context. Not supported in EntLib logging.

public IDisposable OpenMappedContext (string key, string value);
abstract member OpenMappedContext : string * string -> IDisposable
Public Function OpenMappedContext (key As String, value As String) As IDisposable

Parameters

key
String

A key.

value
String

A value.

Returns

A disposable that when disposed removes the map from the context.

Applies to