Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Monitor Members

Provides a mechanism that synchronizes access to objects.

The Monitor type exposes the following members.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Enter Acquires an exclusive lock on the specified object.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Exit Releases an exclusive lock on the specified object.
Public method Static member Pulse Notifies a thread in the waiting queue of a change in the locked object's state.
Public method Static member PulseAll Notifies all waiting threads of a change in the object's state.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework TryEnter Overloaded. Attempts to acquire an exclusive lock on the specified object.
Public method Static member Wait Overloaded. Releases the lock on an object and blocks the current thread until it reacquires the lock.
Top

Community Additions

Show:
© 2015 Microsoft