Freigeben über


UITestInterpreter.IsExpectedExceptionFromActionExecution-Methode

Gibt "true" zurück, wenn die angegebene Ausnahme von der Ausführung einer Aktion erwartet wird.

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

Syntax

'Declaration
Protected Friend Overrides Function IsExpectedExceptionFromActionExecution ( _
    ex As Exception _
) As Boolean
protected internal override bool IsExpectedExceptionFromActionExecution(
    Exception ex
)
protected public:
virtual bool IsExpectedExceptionFromActionExecution(
    Exception^ ex
) override
abstract IsExpectedExceptionFromActionExecution : 
        ex:Exception -> bool  
override IsExpectedExceptionFromActionExecution : 
        ex:Exception -> bool
override function IsExpectedExceptionFromActionExecution(
    ex : Exception
) : boolean

Parameter

  • ex
    Typ: Exception

Rückgabewert

Typ: Boolean

.NET Framework-Sicherheit

Siehe auch

Referenz

UITestInterpreter Klasse

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration-Namespace