Share via


ElementNotEnabledException 建構函式

定義

初始化 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

造成此例外狀況的例外狀況。

適用於