Windows Dev Center

ElementNotEnabledException.ElementNotEnabledException constructor

Initializes a new instance of the ElementNotEnabledException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Syntax


public ElementNotEnabledException(
  string message, 
  Exception innerException
)

Parameters

message

Type: System.String

The message that describes the error.

innerException

Type: Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

Requirements (Windows 10 device family)

Device family

API contract

Namespace

Windows.UI.Xaml.Automation

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation

Assembly

System.Runtime.WindowsRuntime.UI.Xaml.dll

See also

ElementNotEnabledException

 

 

Show:
© 2015 Microsoft