We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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

Initializes a new instance of the UITestControlNotFoundException class by using the provided primary control properties, secondary control properties, root UI control, UI test control, and source.

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

public UITestControlNotFoundException(
	PropertyExpressionCollection primaryProperties,
	PropertyExpressionCollection secondaryProperties,
	string root,
	Exception innerException,
	string uiTestControl,
	Object exceptionSource
)

Parameters

primaryProperties
Type: Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
The primary properties of the control.
secondaryProperties
Type: Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
The secondary properties of the control.
root
Type: System.String
A string representation of the root element.
innerException
Type: System.Exception
The original exception that caused the current exception.
uiTestControl
Type: System.String
A string representation of the UITestControl that is blocked.
exceptionSource
Type: System.Object
The object that is the source of the exception.

Show: