Condividi tramite


Mutex.WaitOne Method (Int32)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Blocks the calling thread for the specified time until the current WaitHandle receives a signal.

Namespace:  System.Threading
Assembly:  mscorlib.Extensions (in mscorlib.Extensions.dll)

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Overrides Function WaitOne ( _
    millisecondsTimeout As Integer _
) As Boolean
[SecuritySafeCriticalAttribute]
public override bool WaitOne(
    int millisecondsTimeout
)

Parameters

  • millisecondsTimeout
    Type: System.Int32
    The time to block the current thread.

Return Value

Type: System.Boolean
true if the current instance receives a signal. If the current instance is never signaled, WaitOne never returns.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.