共用方式為


UITestException Constructors

Definition

Overloads

UITestException()

Initializes a new instance of the UITestException class.

UITestException(String)

Initializes a new instance of the UITestException class by using the given error message.

UITestException(SerializationInfo, StreamingContext)

Initializes a new instance of the UITestException class to deserialize the exception.

UITestException(String, Exception)

Initializes a new instance of the UITestException class by using the provided message and inner exception.

UITestException()

Initializes a new instance of the UITestException class.

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

Applies to

UITestException(String)

Initializes a new instance of the UITestException class by using the given error message.

public:
 UITestException(System::String ^ message);
public UITestException (string message);
new Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException : string -> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
Public Sub New (message As String)

Parameters

message
String

An error message.

Applies to

UITestException(SerializationInfo, StreamingContext)

Initializes a new instance of the UITestException class to deserialize the exception.

protected:
 UITestException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UITestException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Applies to

UITestException(String, Exception)

Initializes a new instance of the UITestException class by using the provided message and inner exception.

public:
 UITestException(System::String ^ message, Exception ^ innerException);
public UITestException (string message, Exception innerException);
new Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException : string * Exception -> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

An error message.

innerException
Exception

The exception that caused the current exception.

Applies to