UITestControlCollection.IndexOf Method
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assemblies: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
Syntax
'Declaration
Public Function IndexOf ( _
control As UITestControl _
) As Integer
public int IndexOf(
UITestControl control
)
public:
int IndexOf(
UITestControl^ control
)
member IndexOf :
control:UITestControl -> int
public function IndexOf(
control : UITestControl
) : int
Parameters
- control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Return Value
Type: Int32
.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.