Export (0) Print
Expand All

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
)

Parameters

duplicate
Type: System.Object

The duplicate key that caused the exception to be thrown.

message
Type: System.String

The message to appear when the exception is thrown.

innerException
Type: System.Exception

The previous exception that caused the DuplicateKeyException exception to be thrown.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft