Dela via


TraceLogProvider.OpenMappedContext(String, String) Method

Definition

Opens a mapped diagnostics context.

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

Parameters

key
String

The key to add to the diagnostics context.

value
String

The value to add to the diagnostics context.

Returns

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

Implements

Applies to