Share via


ActionList.FindIndex Method

Returns the index of the action that has the specified identifier.

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

Syntax

'Declaration
Public Function FindIndex ( _
    id As Long _
) As Integer
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: Int64

    An Int64 that represents the identifier to search for.

Return Value

Type: Int32
If found, the index of the action; otherwise, -1.

.NET Framework Security

See Also

Reference

ActionList Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace