CompilationUnit.EnterReadLock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.