CompilationUnit.EnterReadLock Method

Definition

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

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

Implements

Exceptions

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

Applies to