DuplicateKeyException 构造函数
定义
初始化 DuplicateKeyException 类的新实例。Initializes a new instance of the DuplicateKeyException class.
重载
| DuplicateKeyException(Object) |
初始化 DuplicateKeyException 类的新实例。Initializes a new instance of the DuplicateKeyException class. |
| 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 类的新实例。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 类的新实例。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
导致引发异常的重复键。The duplicate key that caused the exception to be thrown.
适用于
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
导致引发异常的重复键。The duplicate key that caused the exception to be thrown.
- message
- String
当引发异常时要显示的消息。The message to appear when the exception is thrown.
适用于
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
导致引发异常的重复键。The duplicate key that caused the exception to be thrown.
- message
- String
当引发异常时要显示的消息。The message to appear when the exception is thrown.
- innerException
- Exception
导致引发 DuplicateKeyException 异常的上一个异常。The previous exception that caused the DuplicateKeyException exception to be thrown.