如果给定异常从操作执行中是预期的则返回 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。