This documentation is archived and is not being maintained.

DisplayFieldList::IndexOfFieldId Method

Gets the index in this collection of the specified FieldDefinition.

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

public:
int IndexOfFieldId(
	int id
)

Parameters

id
Type: System::Int32

The ID of the FieldDefinition for which the index in this collection is desired.

Return Value

Type: System::Int32
The index of the specified FieldDefinition in this collection. Returns -1 if the field is not located in this collection.

Show: