CompilationUnit.EnterUpgradeableReadLock Method

Definition

Enters an upgradeable read-lock, provided none of the dependent locks is set, or a suitable compilation lock is aready held.

public void EnterUpgradeableReadLock ();
member this.EnterUpgradeableReadLock : unit -> unit
Public Sub EnterUpgradeableReadLock ()

Exceptions

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

Applies to