Adds the specified object to this collection.
Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Protected Overrides Function AddItem ( _
    value As Object _
) As Integer
protected override int AddItem(
    Object value
)
protected:
virtual int AddItem(
    Object^ value
) override
abstract AddItem : 
        value:Object -> int  
override AddItem : 
        value:Object -> int
protected override function AddItem(
    value : Object
) : int
Parameters
- value 
 Type: System.Object- The object to add to this collection. 
Return Value
Type: System.Int32
The index in this collection of the newly added object.
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | The value is null. | 
| InvalidOperationException | The object that is specified in the value parameter already occurs in this collection. | 
.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.