DuplicateKeyException DuplicateKeyException DuplicateKeyException DuplicateKeyException Constructors

定义

重载

DuplicateKeyException(Object) DuplicateKeyException(Object) DuplicateKeyException(Object) DuplicateKeyException(Object)

初始化 DuplicateKeyException 类的新实例。Initializes a new instance of the DuplicateKeyException class.

DuplicateKeyException(Object, String) DuplicateKeyException(Object, String) DuplicateKeyException(Object, String) DuplicateKeyException(Object, String)

通过引用重复键并提供错误消息来初始化 DuplicateKeyException 类的新实例。Initializes a new instance of the DuplicateKeyException class by referencing the duplicate key and providing an error message.

DuplicateKeyException(Object, String, Exception) DuplicateKeyException(Object, String, Exception) DuplicateKeyException(Object, String, Exception) DuplicateKeyException(Object, String, Exception)

通过引用重复键、提供错误消息并指定导致引发此异常的异常来初始化 DuplicateKeyException 类的新实例。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.

DuplicateKeyException(Object) DuplicateKeyException(Object) DuplicateKeyException(Object) DuplicateKeyException(Object)

初始化 DuplicateKeyException 类的新实例。Initializes a new instance of the DuplicateKeyException class.

public:
 DuplicateKeyException(System::Object ^ duplicate);
public DuplicateKeyException (object duplicate);
new System.Data.Linq.DuplicateKeyException : obj -> System.Data.Linq.DuplicateKeyException
Public Sub New (duplicate As Object)

参数

duplicate
Object Object Object Object

导致引发异常的重复键。The duplicate key that caused the exception to be thrown.

DuplicateKeyException(Object, String) DuplicateKeyException(Object, String) DuplicateKeyException(Object, String) DuplicateKeyException(Object, String)

通过引用重复键并提供错误消息来初始化 DuplicateKeyException 类的新实例。Initializes a new instance of the DuplicateKeyException class by referencing the duplicate key and providing an error message.

public:
 DuplicateKeyException(System::Object ^ duplicate, System::String ^ message);
public DuplicateKeyException (object duplicate, string message);
new System.Data.Linq.DuplicateKeyException : obj * string -> System.Data.Linq.DuplicateKeyException
Public Sub New (duplicate As Object, message As String)

参数

duplicate
Object Object Object Object

导致引发异常的重复键。The duplicate key that caused the exception to be thrown.

message
String String String String

当引发异常时要显示的消息。The message to appear when the exception is thrown.

DuplicateKeyException(Object, String, Exception) DuplicateKeyException(Object, String, Exception) DuplicateKeyException(Object, String, Exception) DuplicateKeyException(Object, String, Exception)

通过引用重复键、提供错误消息并指定导致引发此异常的异常来初始化 DuplicateKeyException 类的新实例。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.

public:
 DuplicateKeyException(System::Object ^ duplicate, System::String ^ message, Exception ^ innerException);
public DuplicateKeyException (object duplicate, string message, Exception innerException);
new System.Data.Linq.DuplicateKeyException : obj * string * Exception -> System.Data.Linq.DuplicateKeyException
Public Sub New (duplicate As Object, message As String, innerException As Exception)

参数

duplicate
Object Object Object Object

导致引发异常的重复键。The duplicate key that caused the exception to be thrown.

message
String String String String

当引发异常时要显示的消息。The message to appear when the exception is thrown.

innerException
Exception Exception Exception Exception

导致引发 DuplicateKeyException 异常的上一个异常。The previous exception that caused the DuplicateKeyException exception to be thrown.

适用于