共用方式為


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 中所包含的元素數。 (繼承自 ICollection<ITestAttachment>)。
公用屬性 IsReadOnly 取得值,指出 ICollection 是否唯讀。 (繼承自 ICollection<ITestAttachment>)。
公用屬性 Item 取得或設定指定之索引處的項目。

回頁首

方法

  名稱 描述
公用方法 Add 將項目加入至 ICollection。 (繼承自 ICollection<ITestAttachment>)。
公用方法 Clear 將所有項目從 ICollection 移除。 (繼承自 ICollection<ITestAttachment>)。
公用方法 Contains 判斷 ICollection 是否包含特定值。 (繼承自 ICollection<ITestAttachment>)。
公用方法 CopyTo 從特定的 Array 索引開始,複製 ICollection 項目至 Array。 (繼承自 ICollection<ITestAttachment>)。
公用方法 GetEnumerator 傳回逐一查看集合的列舉值。 (繼承自 IEnumerable<ITestAttachment>)。
公用方法 Remove ICollection 移除特定物件的第一個相符項目。 (繼承自 ICollection<ITestAttachment>)。
公用方法 RemoveAt 移除指定之索引處的 IAttachmentCollection 項目。

回頁首

事件

  名稱 描述
公用事件 CollectionChanged 發生於集合變更時。 (繼承自 INotifyCollectionChanged)。

回頁首

請參閱

參考

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestCase

ITestStep

ITestRun

ITestResult

ISharedStep