DuplicateKeyException Constructor (Object, String, Exception)

Initializes a new instance of the DuplicateKeyException class by referencing the duplicate key, providing an error message, and specifying the exception that caused this exception to be thrown.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public DuplicateKeyException(
	Object duplicate,
	string message,
	Exception innerException


Type: System.Object
The duplicate key that caused the exception to be thrown.
Type: System.String
The message to appear when the exception is thrown.
Type: System.Exception
The previous exception that caused the DuplicateKeyException exception to be thrown.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions