DuplicateKeyException Constructor (Object, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the DuplicateKeyException class by referencing the duplicate key and providing an error message.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
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.
Show: