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。

适用于