AbandonedMutexException.Mutex Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the abandoned mutex that caused the exception, if known.

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

Syntax

Public ReadOnly Property Mutex As Mutex
public Mutex Mutex { get; }

Property Value

Type: System.Threading..::.Mutex
A Mutex object that represents the abandoned mutex, or nullNothingnullptra null reference (Nothing in Visual Basic) if the abandoned mutex could not be identified.

Remarks

If the exception is thrown on a call to the WaitHandle..::.WaitAny method, the Mutex returned is the abandoned mutex with the lowest index in the array of WaitHandle objects that was passed to WaitAny, or nullNothingnullptra null reference (Nothing in Visual Basic) if the abandoned mutex could not be identified. If the exception is thrown on a call to WaitOne or WaitAll, this property always returns nullNothingnullptra null reference (Nothing in Visual Basic).

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

AbandonedMutexException Class

System.Threading Namespace

Mutex

Other Resources

[9dd06e25-12c0-4a9e-855a-452dc83803e2]