AttachmentCollection.Add Method
Adds the specified attachment to this collection.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public Function Add ( _
attachment As Attachment _
) As Integer
public int Add(
Attachment attachment
)
public:
int Add(
Attachment^ attachment
)
member Add :
attachment:Attachment -> int
public function Add(
attachment : Attachment
) : int
Parameters
- attachment
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment
The attachment to add to this collection.
Return Value
Type: System.Int32
The index of the newly added attachment.
.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.