다음을 통해 공유


DisplayFieldList.IndexOf Method

Gets the index of the specified FieldDefinition.

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

Syntax

‘선언
Public Function IndexOf ( _
    value As FieldDefinition _
) As Integer
public int IndexOf(
    FieldDefinition value
)
public:
int IndexOf(
    FieldDefinition^ value
)
member IndexOf : 
        value:FieldDefinition -> int 
public function IndexOf(
    value : FieldDefinition
) : int

Parameters

Return Value

Type: System.Int32
The index of the specified FieldDefinition. If the field is not in the list, returns -1.

Exceptions

Exception Condition
ArgumentNullException

The value argument is null.

.NET Framework Security

See Also

Reference

DisplayFieldList Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace