ActionList.FindIndex Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Finds and returns a test action item in the list using the given index.
Namespace: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (in Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll)
Syntax
'Declaration
Public Function FindIndex ( _
id As Long _
) As Integer
'Usage
Dim instance As ActionList
Dim id As Long
Dim returnValue As Integer
returnValue = instance.FindIndex(id)
public int FindIndex(
long id
)
public:
int FindIndex(
long long id
)
member FindIndex :
id:int64 -> int
public function FindIndex(
id : long
) : int
Parameters
- id
Type: System.Int64
An int indicating the index of the item to return.
Return Value
Type: System.Int32
The action item from the specified index if it exists; otherwise, nulla null reference (Nothing in Visual Basic).
.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.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace