ElementNotEnabledException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ElementNotEnabledException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| ElementNotEnabledException() |
初始化 ElementNotEnabledException 类的新实例。 |
| ElementNotEnabledException(String) |
使用指定的错误消息初始化类的新实例 ElementNotEnabledException 。 |
| ElementNotEnabledException(SerializationInfo, StreamingContext) |
使用序列化信息初始化类的新实例 ElementNotEnabledException 。 |
| ElementNotEnabledException(String, Exception) |
使用指定的错误消息和对导致此异常的内部异常的引用初始化类的新实例 ElementNotEnabledException 。 |
ElementNotEnabledException()
初始化 ElementNotEnabledException 类的新实例。
public:
ElementNotEnabledException();
public ElementNotEnabledException();
Public Sub New ()
适用于
ElementNotEnabledException(String)
使用指定的错误消息初始化类的新实例 ElementNotEnabledException 。
public:
ElementNotEnabledException(System::String ^ message);
public ElementNotEnabledException(string message);
new System.Windows.Automation.ElementNotEnabledException : string -> System.Windows.Automation.ElementNotEnabledException
Public Sub New (message As String)
参数
- message
- String
对错误的说明。
适用于
ElementNotEnabledException(SerializationInfo, StreamingContext)
使用序列化信息初始化类的新实例 ElementNotEnabledException 。
protected:
ElementNotEnabledException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ElementNotEnabledException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Automation.ElementNotEnabledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Automation.ElementNotEnabledException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
序列化或反序列化对象所需的数据。
- context
- StreamingContext
序列化流的源和目标。
适用于
ElementNotEnabledException(String, Exception)
使用指定的错误消息和对导致此异常的内部异常的引用初始化类的新实例 ElementNotEnabledException 。
public:
ElementNotEnabledException(System::String ^ message, Exception ^ innerException);
public ElementNotEnabledException(string message, Exception innerException);
new System.Windows.Automation.ElementNotEnabledException : string * Exception -> System.Windows.Automation.ElementNotEnabledException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
对错误的说明。
- innerException
- Exception
导致此异常的异常。