MetadataException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 MetadataException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| MetadataException() |
使用默认消息初始化类的新实例 MetadataException 。 |
| MetadataException(String) |
使用指定的消息初始化类的新实例 MetadataException 。 |
| MetadataException(String, Exception) |
使用指定的消息和内部异常初始化类的新实例 MetadataException 。 |
MetadataException()
使用默认消息初始化类的新实例 MetadataException 。
public:
MetadataException();
public MetadataException();
Public Sub New ()
适用于
MetadataException(String)
使用指定的消息初始化类的新实例 MetadataException 。
public:
MetadataException(System::String ^ message);
public MetadataException(string message);
new System.Data.MetadataException : string -> System.Data.MetadataException
Public Sub New (message As String)
参数
- message
- String
异常消息。
适用于
MetadataException(String, Exception)
使用指定的消息和内部异常初始化类的新实例 MetadataException 。
public:
MetadataException(System::String ^ message, Exception ^ innerException);
public MetadataException(string message, Exception innerException);
new System.Data.MetadataException : string * Exception -> System.Data.MetadataException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
异常消息。
- innerException
- Exception
这是造成此 MetadataException原因的异常。