语言

PropertyConstraintException 构造函数

定义

初始化 PropertyConstraintException 类的新实例。

重载

名称 说明
PropertyConstraintException()

使用默认消息初始化类的新实例 PropertyConstraintException 。

PropertyConstraintException(String)

使用提供的消息初始化类的新实例 PropertyConstraintException 。

PropertyConstraintException(String, Exception)

使用提供的消息和内部异常初始化类的新实例 PropertyConstraintException 。

PropertyConstraintException(String, String)

初始化 PropertyConstraintException 类的新实例。

PropertyConstraintException(String, String, Exception)

初始化 PropertyConstraintException 类的新实例。

PropertyConstraintException()

使用默认消息初始化类的新实例 PropertyConstraintException 。

public:
 PropertyConstraintException();
public PropertyConstraintException();
Public Sub New ()

适用于

PropertyConstraintException(String)

使用提供的消息初始化类的新实例 PropertyConstraintException 。

public:
 PropertyConstraintException(System::String ^ message);
public PropertyConstraintException(string message);
new System.Data.PropertyConstraintException : string -> System.Data.PropertyConstraintException
Public Sub New (message As String)

参数

message
String

本地化的错误消息。

适用于

PropertyConstraintException(String, Exception)

使用提供的消息和内部异常初始化类的新实例 PropertyConstraintException 。

public:
 PropertyConstraintException(System::String ^ message, Exception ^ innerException);
public PropertyConstraintException(string message, Exception innerException);
new System.Data.PropertyConstraintException : string * Exception -> System.Data.PropertyConstraintException
Public Sub New (message As String, innerException As Exception)

参数

message
String

本地化的错误消息。

innerException
Exception

内部异常。

适用于

PropertyConstraintException(String, String)

初始化 PropertyConstraintException 类的新实例。

public:
 PropertyConstraintException(System::String ^ message, System::String ^ propertyName);
public PropertyConstraintException(string message, string propertyName);
new System.Data.PropertyConstraintException : string * string -> System.Data.PropertyConstraintException
Public Sub New (message As String, propertyName As String)

参数

message
String

本地化的错误消息。

propertyName
String

属性的名称。

适用于

PropertyConstraintException(String, String, Exception)

初始化 PropertyConstraintException 类的新实例。

public:
 PropertyConstraintException(System::String ^ message, System::String ^ propertyName, Exception ^ innerException);
public PropertyConstraintException(string message, string propertyName, Exception innerException);
new System.Data.PropertyConstraintException : string * string * Exception -> System.Data.PropertyConstraintException
Public Sub New (message As String, propertyName As String, innerException As Exception)

参数

message
String

本地化的错误消息。

propertyName
String

属性的名称。

innerException
Exception

内部异常。

适用于