public class DuplicateWaitObjectException : ArgumentException
Object
Exception
SystemException
ArgumentException
DuplicateWaitObjectException
mscorlib
BCL
Represents the error that occurs when an object appears more than once in an array of WaitHandle instances.
[Note: It is generally unnecessary for applications to throw DuplicateWaitObjectException . This exception is thrown by thread synchronization methods, such as System.Threading.WaitHandle.WaitAll(System.Threading.WaitHandle[],System.Int32,System.Boolean) and System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[],System.Int32,System.Boolean).]
System Namespace
DuplicateWaitObjectException Constructors
DuplicateWaitObjectException() Constructor
DuplicateWaitObjectException(System.String) Constructor
DuplicateWaitObjectException(System.String, System.String) Constructor
public DuplicateWaitObjectException();
Constructs and initializes a new instance of the DuplicateWaitObjectException class.
This constructor initializes the System.DuplicateWaitObjectException.Message property of the new instance to a system-supplied message that describes the error, such as "Duplicate objects in argument." This message takes into account the current system culture. The System.DuplicateWaitObjectException.InnerException and System.DuplicateWaitObjectException.ParamName properties are initialized tonull
.
System.DuplicateWaitObjectException Class, System Namespace
public DuplicateWaitObjectException(string parameterName);
Constructs and initializes a new instance of the DuplicateWaitObjectException class.
- parameterName
- A String that contains the name of the parameter that caused the exception. The content of parameterName is intended to be understood by humans.
This constructor initializes the System.DuplicateWaitObjectException.Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture. The System.DuplicateWaitObjectException.InnerException property is initialized tonull
.This constructor initializes the System.DuplicateWaitObjectException.ParamName property of the new instance using parameterName.
System.DuplicateWaitObjectException Class, System Namespace
public DuplicateWaitObjectException(string parameterName, string message);
Constructs and initializes a new instance of the DuplicateWaitObjectException class.
- parameterName
- A String that contains the name of the parameter that caused the exception. The content of parameterName is intended to be understood by humans.
- message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
This constructor initializes the System.DuplicateWaitObjectException.ParamName property of the new instance using parameterName, and the System.DuplicateWaitObjectException.Message property using message . If message isnull
, the System.DuplicateWaitObjectException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.The System.DuplicateWaitObjectException.InnerException property is initialized to
null
.
System.DuplicateWaitObjectException Class, System Namespace