Share via


DisplayFieldList.Add Method (String)

Adds a FieldDefinition object to this collection by its name.

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

Syntax

'Declaration
Public Function Add ( _
    fieldName As String _
) As Integer
public int Add(
    string fieldName
)
public:
int Add(
    String^ fieldName
)
member Add : 
        fieldName:string -> int 
public function Add(
    fieldName : String
) : int

Parameters

Return Value

Type: System.Int32
The index of the FieldDefinition object that is added by this method.

Remarks

This method determines whether the specified FieldDefinition is already located in this collection by checking for Id. If the specified FieldDefinition is located in this collection, its index is returned. Otherwise, the specified FieldDefinition is added to this collection and the new index is returned.

.NET Framework Security

See Also

Reference

DisplayFieldList Class

Add Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace