This documentation is archived and is not being maintained.

AttachmentCollection::IndexOf Method

Gets the index of the specified attachment.

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

public:
int IndexOf(
	Attachment^ attachment
)

Parameters

attachment
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::Attachment

The attachment for which the index is desired.

Return Value

Type: System::Int32
The index of the specified attachment. Returns -1 if the attachment is not located in this collection.

Show: