共用方式為


TestActionResultCollection.IndexOf Method (Int32)

Searches for a test action result that has the specified action ID and returns the zero-based index of the first occurrence in the entire collection.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    actionId As Integer _
) As Integer
public int IndexOf(
    int actionId
)
public:
int IndexOf(
    int actionId
)
member IndexOf : 
        actionId:int -> int
public function IndexOf(
    actionId : int
) : int

Parameters

  • actionId
    Type: Int32

    The action ID for the desired test action result.

Return Value

Type: Int32
The zero-based index of the first occurrence of the desired test action result in the whole collection.

.NET Framework Security

See Also

Reference

TestActionResultCollection Class

IndexOf Overload

Microsoft.TeamFoundation.TestManagement.Client Namespace