PropertyException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
PropertyException(String) |
使用导致异常的 属性初始化 PropertyException 类的新实例。 |
PropertyException(String, String) |
使用导致异常的 属性和错误消息文本初始化 PropertyException 类的新实例。 |
PropertyException(String, String, Exception) |
使用导致异常的 属性、错误消息文本和内部异常初始化 PropertyException 类的新实例。 |
PropertyException(String)
使用导致异常的 属性初始化 PropertyException 类的新实例。
public:
PropertyException(System::String ^ name);
public PropertyException (string name);
Public Sub New (name As String)
参数
- name
- String
导致异常的属性的名称。
适用于
PropertyException(String, String)
PropertyException(String, String, Exception)
使用导致异常的 属性、错误消息文本和内部异常初始化 PropertyException 类的新实例。
public:
PropertyException(System::String ^ message, System::String ^ name, Exception ^ innerException);
public PropertyException (string message, string name, Exception innerException);
Public Sub New (message As String, name As String, innerException As Exception)
参数
- message
- String
错误消息文本。
- name
- String
导致异常的属性的名称。
- innerException
- Exception
内部异常。