共用方式為


WorkItemLinkCollection.AddItem Method

Adds the specified object to this collection.

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

Syntax

'宣告
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

See Also

Reference

WorkItemLinkCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace