UITestInterpreterCore.IsExpectedExceptionFromActionExecution 方法

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

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

语法

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

参数

返回值

类型:System.Boolean

.NET Framework 安全性

请参见

参考

UITestInterpreterCore 类

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