This documentation is archived and is not being maintained.

DuplicateWaitObjectException Class

The exception that is thrown when an object appears more than once in an array of synchronization objects.

For a list of all members of this type, see DuplicateWaitObjectException Members.


[Visual Basic]
Public Class DuplicateWaitObjectException
   Inherits ArgumentException
public class DuplicateWaitObjectException : ArgumentException
public __gc class DuplicateWaitObjectException : public
class DuplicateWaitObjectException extends ArgumentException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The common language runtime provides a thread synchronization mechanism based on synchronization objects waiting for execution in an array of WaitHandle objects. If the array of WaitHandle objects passed to WaitAll or WaitAny contains any duplicate operating system handles, DuplicateWaitObjectException is thrown. For more information, see WaitHandle.

DuplicateWaitObjectException uses the HRESULT COR_E_DUPLICATEWAITOBJECT, which has the value 0x80131529.

For a list of initial property values for an instance of DuplicateWaitObjectException, see the DuplicateWaitObjectException constructors.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

DuplicateWaitObjectException Members | System Namespace | WaitHandle | Exception | Threading | Handling and Throwing Exceptions