Editar

Compartilhar via


ElementNotEnabledException Constructors

Definition

Initializes a new instance of the ElementNotEnabledException class.

Overloads

ElementNotEnabledException()

Initializes a new instance of the ElementNotEnabledException class.

ElementNotEnabledException(String)

Initializes a new instance of the ElementNotEnabledException class with a specified error message.

ElementNotEnabledException(SerializationInfo, StreamingContext)

Initializes a new instance of the ElementNotEnabledException class with serialization information.

ElementNotEnabledException(String, Exception)

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

ElementNotEnabledException()

Initializes a new instance of the ElementNotEnabledException class.

public:
 ElementNotEnabledException();
public ElementNotEnabledException ();
Public Sub New ()

Applies to

ElementNotEnabledException(String)

Initializes a new instance of the ElementNotEnabledException class with a specified error message.

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)

Parameters

message
String

The description of the error.

Applies to

ElementNotEnabledException(SerializationInfo, StreamingContext)

Initializes a new instance of the ElementNotEnabledException class with serialization information.

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)

Parameters

info
SerializationInfo

Data needed to serialize or deserialize the object.

context
StreamingContext

The source and destination of the serialized stream.

Applies to

ElementNotEnabledException(String, Exception)

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

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)

Parameters

message
String

The description of the error.

innerException
Exception

The exception that caused this exception.

Applies to