[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the index of the abandoned mutex that caused the exception, if known.
Assembly: mscorlib (in mscorlib.dll)
If the exception is thrown on a call to the WaitHandle.WaitAny method, this property returns the index of the abandoned mutex with the lowest index in the array of WaitHandle objects that was passed to WaitAny, or –1 if the abandoned mutex could not be identified. If the exception is thrown on a call to WaitOne or WaitAll, this property always returns –1.
The following code example executes a thread that abandons five mutexes. The abandoned mutexes are used to demonstrate the effects on the WaitHandle.WaitOne, WaitAny, and WaitAll method calls. The value of the property is displayed for the WaitAny call.