CompilationUnit.EnterWriteLock Method

Definition

Enters a write-lock, provided none of the dependent locks is set, or a suitable compilation lock is already held.

public void EnterWriteLock ();
abstract member EnterWriteLock : unit -> unit
override this.EnterWriteLock : unit -> unit
Public Sub EnterWriteLock ()

Implements

Exceptions

Any of the dependent locks is set, but the SyncRoot is not at least read-lock-held.

Applies to