Partilhar via


Método DisplayFieldList.IndexOf

Obtém o índice de FieldDefinitionespecificado.

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

Sintaxe

'Declaração
Public Function IndexOf ( _
    value As FieldDefinition _
) As Integer
public int IndexOf(
    FieldDefinition value
)

Parâmetros

Valor de retorno

Tipo: System.Int32
O índice de FieldDefinitionespecificado.Se o campo não estiver na lista, retornará -1.

Exceções

Exceção Condição
ArgumentNullException

O argumento value é nulo.

Segurança do .NET Framework

Consulte também

Referência

DisplayFieldList Classe

Namespace Microsoft.TeamFoundation.WorkItemTracking.Client