다음을 통해 공유


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)

Syntax

‘선언
Public Sub Insert ( _
    index As Integer, _
    fieldName As String _
)
public void Insert(
    int index,
    string fieldName
)
public:
void Insert(
    int index, 
    String^ fieldName
)
member Insert : 
        index:int * 
        fieldName:string -> unit 
public function Insert(
    index : int, 
    fieldName : String
)

Parameters

Exceptions

Exception Condition
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.

Remarks

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

.NET Framework Security

See Also

Reference

DisplayFieldList Class

Insert Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace