ILogger.BeginScope<TState>(TState) Metoda

Definice

Zahájí obor logické operace.Begins a logical operation scope.

public:
generic <typename TState>
 IDisposable ^ BeginScope(TState state);
public IDisposable BeginScope<TState> (TState state);
abstract member BeginScope : 'State -> IDisposable
Public Function BeginScope(Of TState) (state As TState) As IDisposable

Parametry typu

TState

Typ stavu, pro který má být zahájen rozsah.The type of the state to begin scope for.

Parametry

state
TState

Identifikátor oboruThe identifier for the scope.

Návraty

IDisposable

Objekt na jedno použití, který ukončí rozsah logické operace při Dispose.A disposable object that ends the logical operation scope on dispose.

Platí pro