Partager via


ValidationFailedException Constructor (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.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
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 _
)
public ValidationFailedException(
    string message,
    string actionName,
    string condition,
    string propertyName,
    string friendlyName,
    string expectedValue,
    string actualValue,
    Exception innerException
)
public:
ValidationFailedException(
    String^ message, 
    String^ actionName, 
    String^ condition, 
    String^ propertyName, 
    String^ friendlyName, 
    String^ expectedValue, 
    String^ actualValue, 
    Exception^ innerException
)
new : 
        message:string * 
        actionName:string * 
        condition:string * 
        propertyName:string * 
        friendlyName:string * 
        expectedValue:string * 
        actualValue:string * 
        innerException:Exception -> ValidationFailedException
public function ValidationFailedException(
    message : String, 
    actionName : String, 
    condition : String, 
    propertyName : String, 
    friendlyName : String, 
    expectedValue : String, 
    actualValue : String, 
    innerException : Exception
)

Parameters

  • message
    Type: String

    The error message.

  • actionName
    Type: String

    The name of the action where the error occurred.

  • condition
    Type: String

    An indication of assert condition.

  • propertyName
    Type: String

    The name of the property.

  • friendlyName
    Type: String

    A friendly name for the control.

  • expectedValue
    Type: String

    The expected value of the property.

  • actualValue
    Type: String

    The actual value of the property.

  • innerException
    Type: Exception

    The inner exception that caused this exception.

.NET Framework Security

See Also

Reference

ValidationFailedException Class

ValidationFailedException Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace