Читати англійською Редагувати

Поділитися через


Lock.Exit Method

Definition

Exits the lock.

C#
public void Exit();

Exceptions

The current thread does not hold the lock.

Remarks

If the current thread holds the lock multiple times, such as recursively, the lock is exited only once. The current thread should ensure that each enter is matched with an exit.

For more information, see the Remarks for Lock.

Applies to

Продукт Версії
.NET 9, 10