DuplicateKeyException Constructor

Initializes a new instance of the DuplicateKeyException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method DuplicateKeyException(Object) Initializes a new instance of the DuplicateKeyException class.
Public method DuplicateKeyException(Object, String) Initializes a new instance of the DuplicateKeyException class by referencing the duplicate key and providing an error message.
Public method DuplicateKeyException(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.
Top

Show:
© 2015 Microsoft