IAttachmentCollection 接口

表示与测试对象(例如测试用例、测试步骤、测试运行、测试结果和共享步骤)关联的附件的集合。

命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

声明
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

IAttachmentCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ICollection<T> 中包含的元素数。 (继承自 ICollection<ITestAttachment>。)
公共属性 IsReadOnly 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<ITestAttachment>。)
公共属性 Item 获取或设置指定索引处的元素。

页首

方法

  名称 说明
公共方法 Add 将某项添加到 ICollection<T> 中。 (继承自 ICollection<ITestAttachment>。)
公共方法 Clear ICollection<T> 中移除所有项。 (继承自 ICollection<ITestAttachment>。)
公共方法 Contains 确定 ICollection<T> 是否包含特定值。 (继承自 ICollection<ITestAttachment>。)
公共方法 CopyTo 从特定的 Array 索引处开始,将 ICollection<T> 的元素复制到一个 Array 中。 (继承自 ICollection<ITestAttachment>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<ITestAttachment>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。)
公共方法 Remove ICollection<T> 中移除特定对象的第一个匹配项。 (继承自 ICollection<ITestAttachment>。)
公共方法 RemoveAt 移除指定索引处的 IAttachmentCollection 项。

页首

事件

  名称 说明
公共事件 CollectionChanged 当集合更改时发生。 (继承自 INotifyCollectionChanged。)

页首

请参见

参考

Microsoft.TeamFoundation.TestManagement.Client 命名空间

ITestCase

ITestStep

ITestRun

ITestResult

ISharedStep