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.ElementNotEnabledExceptionPublic 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.ElementNotEnabledExceptionProtected 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.ElementNotEnabledExceptionPublic Sub New (message As String, innerException As Exception)参数
- message
- String
对错误的说明。
- innerException
- Exception
导致此异常的异常。