FailedToPerformActionOnBlockedControlException 构造函数 (String, String, String, Exception, ILastInvocationInfo, IntPtr, String, Object)

使用提供的消息、对象名称、操作名称、内部异常、上一个调用的信息、窗口句柄、UI 测试控件和源初始化 FailedToPerformActionOnBlockedControlException 类的新实例。

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

语法

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

参数

  • objectName
    类型:System.String
    操作失败的对象的名称。
  • windowHandle
    类型:System.IntPtr
    阻止控件的窗口的句柄。
  • exceptionSource
    类型:System.Object
    作为异常源的 object。

.NET Framework 安全性

请参见

参考

FailedToPerformActionOnBlockedControlException 类

FailedToPerformActionOnBlockedControlException 重载

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

ILastInvocationInfo

UITestControl