Share via


DisplayFieldList.Insert Method (Int32, FieldDefinition)

Inserts the specified FieldDefinition object into this collection at the specified index.

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

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    value As FieldDefinition _
)
public void Insert(
    int index,
    FieldDefinition value
)
public:
void Insert(
    int index, 
    FieldDefinition^ value
)
member Insert : 
        index:int * 
        value:FieldDefinition -> unit
public function Insert(
    index : int, 
    value : FieldDefinition
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The value 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 value is already located in this collection or it refers to an invalid FieldDefinition object.

.NET Framework Security

See Also

Reference

DisplayFieldList Class

Insert Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace