ILogger.BeginScope<TState>(TState) Method

Definition

Begins a logical operation scope.

public IDisposable? 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

An IDisposable that ends the logical operation scope on dispose.

Applies to

Prodotto Versioni
.NET 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)