Attempt to acquire the exclusive lock of the specified object.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static bool TryEnter(
Object lockingObject
)
Parameters
- lockingObject Object
- The object on which to acquire the monitor lock.
Return Value
Booleantrue if the current thread acquires the lock; otherwise, false.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also