System.DuplicateWaitObjectException Class

public class DuplicateWaitObjectException : ArgumentException

Base Types

Object
  Exception
    SystemException
      ArgumentException
        DuplicateWaitObjectException

Assembly

mscorlib

Library

BCL

Summary

Represents the error that occurs when an object appears more than once in an array of WaitHandle instances.

Description

[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).]

See Also

System Namespace

Members

DuplicateWaitObjectException Constructors

DuplicateWaitObjectException() Constructor
DuplicateWaitObjectException(System.String) Constructor
DuplicateWaitObjectException(System.String, System.String) Constructor


DuplicateWaitObjectException() Constructor

public DuplicateWaitObjectException();

Summary

Constructs and initializes a new instance of the DuplicateWaitObjectException class.

Description

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 to null .

See Also

System.DuplicateWaitObjectException Class, System Namespace

DuplicateWaitObjectException(System.String) Constructor

public DuplicateWaitObjectException(string parameterName);

Summary

Constructs and initializes a new instance of the DuplicateWaitObjectException class.

Parameters

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.

Description

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 to null .

This constructor initializes the System.DuplicateWaitObjectException.ParamName property of the new instance using parameterName.

See Also

System.DuplicateWaitObjectException Class, System Namespace

DuplicateWaitObjectException(System.String, System.String) Constructor

public DuplicateWaitObjectException(string parameterName, string message);

Summary

Constructs and initializes a new instance of the DuplicateWaitObjectException class.

Parameters

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.

Description

This constructor initializes the System.DuplicateWaitObjectException.ParamName property of the new instance using parameterName, and the System.DuplicateWaitObjectException.Message property using message . If message is null , 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 .

See Also

System.DuplicateWaitObjectException Class, System Namespace