共用方式為


IConcurrencyDetector.EnterCriticalSection 方法

定義

輸入關鍵區段。

public IDisposable EnterCriticalSection ();
public Microsoft.EntityFrameworkCore.Infrastructure.ConcurrencyDetectorCriticalSectionDisposer EnterCriticalSection ();
abstract member EnterCriticalSection : unit -> IDisposable
abstract member EnterCriticalSection : unit -> Microsoft.EntityFrameworkCore.Infrastructure.ConcurrencyDetectorCriticalSectionDisposer
Public Function EnterCriticalSection () As IDisposable
Public Function EnterCriticalSection () As ConcurrencyDetectorCriticalSectionDisposer

傳回

處置時將會結束重要區段的處置器。

適用於