Share via


UITestInterpreterCore.IsExpectedExceptionFromActionExecution Method

Returns true if the given exception is expected from the execution of an action.

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

Syntax

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

Parameters

  • ex
    Type: Exception

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

UITestInterpreterCore Class

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace