DuplicateKeyException Constructor (Object, String)

Initializes a new instance of the DuplicateKeyException class by referencing the duplicate key and providing an error message.

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

'Declaration
Public Sub New ( _
	duplicate As Object, _
	message As String _
)

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.

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

ADD
Show: