ILogger.BeginScope<TState>(TState) Yöntem

Tanım

Bir mantıksal işlem kapsamı başlatır.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

Tür Parametreleri

TState

Kapsamının başlayacağı durum türü.The type of the state to begin scope for.

Parametreler

state
TState

Kapsam için tanımlayıcı.The identifier for the scope.

Döndürülenler

IDisposable

Dispose üzerinde mantıksal işlem kapsamını sonlandıran bir atılabilir nesnesi.A disposable object that ends the logical operation scope on dispose.

Şunlara uygulanır