Share via


IAttachmentCollection Interface

Represents a collection of attachments that is associated with test objects, such as test cases, test steps, test runs, test results, and shared steps.

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

Syntax

'Declaration
Public Interface IAttachmentCollection _
    Inherits ICollection(Of ITestAttachment), IEnumerable(Of ITestAttachment),  _
    IEnumerable, INotifyCollectionChanged
public interface IAttachmentCollection : ICollection<ITestAttachment>, 
    IEnumerable<ITestAttachment>, IEnumerable, INotifyCollectionChanged
public interface class IAttachmentCollection : ICollection<ITestAttachment^>, 
    IEnumerable<ITestAttachment^>, IEnumerable, INotifyCollectionChanged
type IAttachmentCollection =  
    interface 
        interface ICollection<ITestAttachment>
        interface IEnumerable<ITestAttachment>
        interface IEnumerable 
        interface INotifyCollectionChanged 
    end
public interface IAttachmentCollection extends ICollection<ITestAttachment>, IEnumerable<ITestAttachment>, IEnumerable, INotifyCollectionChanged

The IAttachmentCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection. (Inherited from ICollection<ITestAttachment>.)
Public property IsReadOnly Gets a value indicating whether the ICollection is read-only. (Inherited from ICollection<ITestAttachment>.)
Public property Item Gets or sets the element at the specified index.

Top

Methods

  Name Description
Public method Add Adds an item to the ICollection. (Inherited from ICollection<ITestAttachment>.)
Public method Clear Removes all items from the ICollection. (Inherited from ICollection<ITestAttachment>.)
Public method Contains Determines whether the ICollection contains a specific value. (Inherited from ICollection<ITestAttachment>.)
Public method CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection<ITestAttachment>.)
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ITestAttachment>.)
Public method Remove Removes the first occurrence of a specific object from the ICollection. (Inherited from ICollection<ITestAttachment>.)
Public method RemoveAt Removes the IAttachmentCollection item at the specified index.

Top

Events

  Name Description
Public event CollectionChanged Occurs when the collection changes. (Inherited from INotifyCollectionChanged.)

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestCase

ITestStep

ITestRun

ITestResult

ISharedStep