Monitor.TryEnter Method (Object, TimeSpan)
Attempts, for the specified amount of time, to acquire an exclusive lock on the specified object.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.Object
The object on which to acquire the lock.
Return ValueType: System.Boolean
true if the current thread acquires the lock without blocking; otherwise, false.
Silverlight for Windows PhoneWhen a user navigates away from a Windows Phone application, the application is typically put into a dormant state. When the user returns to a dormant application, the application automatically resumes. If the application is put into a dormant state while this API is being used, the API will not complete as expected. Applications should be designed to handle this possibility. For more information about the Windows Phone execution model, see Execution Model for Windows Phone.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.