語言

ElementNotEnabledException 建構函式

定義

初始化 ElementNotEnabledException 類別的新執行個體。

多載

名稱 Description
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

這個例外導致了這個例外。

適用於