Share via


UITestControlNotFoundException Constructor (PropertyExpressionCollection, PropertyExpressionCollection, String, Exception, ILastInvocationInfo, String, Object)

Initializes a new instance of the UITestControlNotFoundException class by using the provided primary control properties, secondary control properties, inner exception, last invocation information, 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 ( _
    primaryProperties As PropertyExpressionCollection, _
    secondaryProperties As PropertyExpressionCollection, _
    root As String, _
    innerException As Exception, _
    lastInfo As ILastInvocationInfo, _
    uiTestControl As String, _
    exceptionSource As Object _
)
public UITestControlNotFoundException(
    PropertyExpressionCollection primaryProperties,
    PropertyExpressionCollection secondaryProperties,
    string root,
    Exception innerException,
    ILastInvocationInfo lastInfo,
    string uiTestControl,
    Object exceptionSource
)
public:
UITestControlNotFoundException(
    PropertyExpressionCollection^ primaryProperties, 
    PropertyExpressionCollection^ secondaryProperties, 
    String^ root, 
    Exception^ innerException, 
    ILastInvocationInfo^ lastInfo, 
    String^ uiTestControl, 
    Object^ exceptionSource
)
new : 
        primaryProperties:PropertyExpressionCollection * 
        secondaryProperties:PropertyExpressionCollection * 
        root:string * 
        innerException:Exception * 
        lastInfo:ILastInvocationInfo * 
        uiTestControl:string * 
        exceptionSource:Object -> UITestControlNotFoundException
public function UITestControlNotFoundException(
    primaryProperties : PropertyExpressionCollection, 
    secondaryProperties : PropertyExpressionCollection, 
    root : String, 
    innerException : Exception, 
    lastInfo : ILastInvocationInfo, 
    uiTestControl : String, 
    exceptionSource : Object
)

Parameters

  • root
    Type: System.String
    A string representation of the root element.
  • innerException
    Type: System.Exception
    The original exception that caused the current exception.
  • exceptionSource
    Type: System.Object
    The object that is the source of the exception.

.NET Framework Security

See Also

Reference

UITestControlNotFoundException Class

UITestControlNotFoundException Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

ILastInvocationInfo

UITestControl