共用方式為


ElementNotEnabledException 建構函式

定義

多載

ElementNotEnabledException()

使用預設值,初始化 ElementNotEnabledException 類別的新執行個體。

ElementNotEnabledException(String)

使用指定的錯誤訊息,初始化 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 Windows.UI.Xaml.Automation.ElementNotEnabledException : string -> Windows.UI.Xaml.Automation.ElementNotEnabledException
Public Sub New (message As String)

參數

message
String

描述錯誤的訊息。

適用於

ElementNotEnabledException(String, Exception)

使用指定的錯誤訊息以及造成此例外狀況的內部例外狀況參考,以初始化 ElementNotEnabledException 類別的新執行個體。

public:
 ElementNotEnabledException(System::String ^ message, Exception ^ innerException);
public ElementNotEnabledException (string message, Exception innerException);
new Windows.UI.Xaml.Automation.ElementNotEnabledException : string * Exception -> Windows.UI.Xaml.Automation.ElementNotEnabledException
Public Sub New (message As String, innerException As Exception)

參數

message
String

描述錯誤的訊息。

innerException
Exception

導致目前例外狀況發生的例外狀況,如果沒有指定任何的內部例外狀況,則為 null。

適用於