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
'Declaração
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.