Delen via


IConcurrencyDetector.EnterCriticalSection Method

Definition

Enters a critical section.

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

Returns

A disposer that will exit the critical section when disposed.

Applies to