Share via


ValidationFailedException Constructors

Definition

Overloads

ValidationFailedException()

Initializes a new instance of the ValidationFailedException class.

ValidationFailedException(String)

Initializes a new instance of the ValidationFailedException class.

ValidationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationFailedException class by using the serialization information and context.

ValidationFailedException(String, Exception)

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

ValidationFailedException(String, String, String, String, String, String, Exception)

Initializes a new instance of the ValidationFailedException class by using the provided action name, condition, property name, friendly name, expected value, actual value, and inner exception.

ValidationFailedException(String, String, String, String, String, String, String, Exception)

Initializes a new instance of the ValidationFailedException class by using the provided message, action name, condition, property name, friendly name, expected value, actual value, and inner exception.

ValidationFailedException()

Initializes a new instance of the ValidationFailedException class.

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

Applies to

ValidationFailedException(String)

Initializes a new instance of the ValidationFailedException class.

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

Parameters

message
String

The error message.

Applies to

ValidationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationFailedException class by using the serialization information and context.

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

Parameters

Applies to

ValidationFailedException(String, Exception)

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

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

Parameters

message
String

The error message.

innerException
Exception

The inner exception that caused this exception.

Applies to

ValidationFailedException(String, String, String, String, String, String, Exception)

Initializes a new instance of the ValidationFailedException class by using the provided action name, condition, property name, friendly name, expected value, actual value, and inner exception.

public:
 ValidationFailedException(System::String ^ actionName, System::String ^ condition, System::String ^ propertyName, System::String ^ friendlyName, System::String ^ expectedValue, System::String ^ actualValue, Exception ^ innerException);
public ValidationFailedException (string actionName, string condition, string propertyName, string friendlyName, string expectedValue, string actualValue, Exception innerException);
new Microsoft.VisualStudio.TestTools.UITest.Extension.ValidationFailedException : string * string * string * string * string * string * Exception -> Microsoft.VisualStudio.TestTools.UITest.Extension.ValidationFailedException
Public Sub New (actionName As String, condition As String, propertyName As String, friendlyName As String, expectedValue As String, actualValue As String, innerException As Exception)

Parameters

actionName
String

The name of the action where the error occurred.

condition
String

An indication of assert condition.

propertyName
String

The name of the property.

friendlyName
String

A friendly name for the control.

expectedValue
String

The expected value of the property.

actualValue
String

The actual value of the property.

innerException
Exception

The inner exception that caused this exception.

Applies to

ValidationFailedException(String, String, String, String, String, String, String, Exception)

Initializes a new instance of the ValidationFailedException class by using the provided message, action name, condition, property name, friendly name, expected value, actual value, and inner exception.

public:
 ValidationFailedException(System::String ^ message, System::String ^ actionName, System::String ^ condition, System::String ^ propertyName, System::String ^ friendlyName, System::String ^ expectedValue, System::String ^ actualValue, Exception ^ innerException);
public ValidationFailedException (string message, string actionName, string condition, string propertyName, string friendlyName, string expectedValue, string actualValue, Exception innerException);
new Microsoft.VisualStudio.TestTools.UITest.Extension.ValidationFailedException : string * string * string * string * string * string * string * Exception -> Microsoft.VisualStudio.TestTools.UITest.Extension.ValidationFailedException
Public Sub New (message As String, actionName As String, condition As String, propertyName As String, friendlyName As String, expectedValue As String, actualValue As String, innerException As Exception)

Parameters

message
String

The error message.

actionName
String

The name of the action where the error occurred.

condition
String

An indication of assert condition.

propertyName
String

The name of the property.

friendlyName
String

A friendly name for the control.

expectedValue
String

The expected value of the property.

actualValue
String

The actual value of the property.

innerException
Exception

The inner exception that caused this exception.

Applies to