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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace