This documentation is archived and is not being maintained.

DisplayFieldList::Insert Method (Int32, String)

Inserts the FieldDefinition object that has the specified name into this collection at the specified index.

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

public:
void Insert(
	int index, 
	String^ fieldName
)

Parameters

index
Type: System::Int32

The index at which to insert the FieldDefinition object.

fieldName
Type: System::String

The name of the FieldDefinition object to add.

ExceptionCondition
ArgumentNullException

The fieldName argument is null.

ArgumentOutOfRangeException

The index argument is negative or larger than the size of this collection.

ArgumentException

The FieldDefinition object that is specified by fieldName is already located in this collection or it refers to an invalid FieldDefinition object.

Throws an exception if the field is already in the list.

Show: