Logger<T>.ILogger.BeginScope<TState>(TState) Method

Definition

Begins a logical operation scope.

IDisposable ILogger.BeginScope<TState> (TState state);

Type Parameters

TState

The type of the state to begin scope for.

Parameters

state
TState

The identifier for the scope.

Returns

A disposable object that ends the logical operation scope on dispose.

Implements

Applies to

Produkt Verze
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)