共用方式為


FieldCollection.IndexOf Method

Gets the index of the specified Field.

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

Syntax

'宣告
Public Function IndexOf ( _
    value As Field _
) As Integer
public int IndexOf(
    Field value
)
public:
int IndexOf(
    Field^ value
)
member IndexOf : 
        value:Field -> int 
public function IndexOf(
    value : Field
) : int

Parameters

Return Value

Type: System.Int32
The index of the specified Field or -1 if it is not found in this collection.

.NET Framework Security

See Also

Reference

FieldCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace