Click or drag to resize
Monitor Class
Provides a mechanism that synchronizes access to objects.
Inheritance Hierarchy
SystemObject
  System.ThreadingMonitor

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static class Monitor

The Monitor type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEnter(Object)
Acquires an exclusive lock on the specified object.
Public methodStatic memberEnter(Object, Boolean)
Acquires an exclusive lock on the specified object, and atomically sets a value that indicates whether the lock was taken.
Public methodStatic memberExit
Releases an exclusive lock on the specified object.
Top
See Also