UITestInterpreter.IsExpectedExceptionFromActionExecution 方法

如果给定异常从操作执行中是预期的则返回 true。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
程序集:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration(在 Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll 中)

语法

声明
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

参数

  • ex
    类型:Exception

返回值

类型:Boolean

.NET Framework 安全性

请参阅

参考

UITestInterpreter 类

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration 命名空间