FailedToPerformActionOnBlockedControlException Constructor (String, String, Exception, ILastInvocationInfo, IntPtr, String, Object)

Initializes a new instance of the FailedToPerformActionOnBlockedControlException class by using the provided object name, action name, inner exception, last invocation information, window handle, UI test control, and source.

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

Syntax

'Declaration
Public Sub New ( _
    objectName As String, _
    actionName As String, _
    innerException As Exception, _
    lastInfo As ILastInvocationInfo, _
    windowHandle As IntPtr, _
    uiTestControl As String, _
    exceptionSource As Object _
)
public FailedToPerformActionOnBlockedControlException(
    string objectName,
    string actionName,
    Exception innerException,
    ILastInvocationInfo lastInfo,
    IntPtr windowHandle,
    string uiTestControl,
    Object exceptionSource
)
public:
FailedToPerformActionOnBlockedControlException(
    String^ objectName, 
    String^ actionName, 
    Exception^ innerException, 
    ILastInvocationInfo^ lastInfo, 
    IntPtr windowHandle, 
    String^ uiTestControl, 
    Object^ exceptionSource
)
new : 
        objectName:string * 
        actionName:string * 
        innerException:Exception * 
        lastInfo:ILastInvocationInfo * 
        windowHandle:IntPtr * 
        uiTestControl:string * 
        exceptionSource:Object -> FailedToPerformActionOnBlockedControlException
public function FailedToPerformActionOnBlockedControlException(
    objectName : String, 
    actionName : String, 
    innerException : Exception, 
    lastInfo : ILastInvocationInfo, 
    windowHandle : IntPtr, 
    uiTestControl : String, 
    exceptionSource : Object
)

Parameters

  • objectName
    Type: System.String
    The name of the object where the action failed.
  • actionName
    Type: System.String
    The name of the action that failed.
  • innerException
    Type: System.Exception
    The original exception that caused the current exception.
  • windowHandle
    Type: System.IntPtr
    The handle of the window that blocks the control.
  • exceptionSource
    Type: System.Object
    The object that is the source of the exception.

.NET Framework Security

See Also

Reference

FailedToPerformActionOnBlockedControlException Class

FailedToPerformActionOnBlockedControlException Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

ILastInvocationInfo

UITestControl