Sdílet prostřednictvím


ValidationFailedException – konstruktor (String, String, String, String, String, String, String, Exception)

Inicializuje novou instanci ValidationFailedException třídy pomocí poskytnutého zprávy, název akce, podmínky, název vlastnosti, popisný název, očekávaná hodnota, skutečná hodnota a vnitřní výjimka.

Obor názvů:  Microsoft.VisualStudio.TestTools.UITest.Extension
Sestavení:  Microsoft.VisualStudio.TestTools.UITest.Extension (v Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntaxe

'Deklarace
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
)

Parametry

  • actionName
    Typ: System.String
    Název akce, kde došlo k chybě.
  • friendlyName
    Typ: System.String
    Popisný název ovládacího prvku.
  • expectedValue
    Typ: System.String
    Očekávaná hodnota vlastnosti.
  • innerException
    Typ: System.Exception
    Vnitřní výjimka, která způsobila tuto výjimku.

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

ValidationFailedException Třída

ValidationFailedException – přetížení

Microsoft.VisualStudio.TestTools.UITest.Extension – obor názvů