TfvcItemsCollection 類別

繼承階層架構

System.Object
  System.Collections.Generic.List<TfvcItem>
    Microsoft.TeamFoundation.SourceControl.WebApi.TfvcItemsCollection

命名空間:  Microsoft.TeamFoundation.SourceControl.WebApi
組件:  Microsoft.TeamFoundation.SourceControl.WebApi (在 Microsoft.TeamFoundation.SourceControl.WebApi.dll 中)

語法

'宣告
<CollectionDataContractAttribute(Name := "TfvcItems", ItemName := "TfvcItem")> _
Public Class TfvcItemsCollection _
    Inherits List(Of TfvcItem)
[CollectionDataContractAttribute(Name = "TfvcItems", ItemName = "TfvcItem")]
public class TfvcItemsCollection : List<TfvcItem>

TfvcItemsCollection 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 TfvcItemsCollection()
公用方法 TfvcItemsCollection(IList<TfvcItem>)

回頁首

屬性

  名稱 描述
公用屬性 Capacity 在不需要調整大小之下,取得或設定內部資料結構可以保存的元素總數。 (繼承自 List<TfvcItem>)。
公用屬性 Count 取得 List<T> 中所包含的元素數。 (繼承自 List<TfvcItem>)。
公用屬性 Item 取得或設定指定之索引處的項目。 (繼承自 List<TfvcItem>)。

回頁首

方法

  名稱 描述
公用方法 Add 將物件加入至 List<T> 的結尾。 (繼承自 List<TfvcItem>)。
公用方法 AddRange 將特定集合的元素加入至 List<T> 的結尾。 (繼承自 List<TfvcItem>)。
公用方法 AsReadOnly 傳回目前集合的唯讀 IList<T> 包裝函式。 (繼承自 List<TfvcItem>)。
公用方法 BinarySearch(T) 使用預設的比較子 (Comparer) 並傳回元素以零起始的索引,來搜尋元素之整個排序的 List<T>。 (繼承自 List<TfvcItem>)。
公用方法 BinarySearch(T, IComparer<T>) 使用指定的比較子並傳回元素以零起始的索引,來搜尋元素之整個排序的 List<T>。 (繼承自 List<TfvcItem>)。
公用方法 BinarySearch(Int32, Int32, T, IComparer<T>) 使用指定的比較子在已經過排序之 List<T> 內某段項目範圍搜尋指定的元素,並傳回該元素的索引 (從零開始起算)。 (繼承自 List<TfvcItem>)。
公用方法 Clear 將所有元素從 List<T> 移除。 (繼承自 List<TfvcItem>)。
公用方法 Contains 判斷某元素是否在 List<T> 中。 (繼承自 List<TfvcItem>)。
公用方法 ConvertAll<TOutput> 將目前 List<T> 中的元素轉換成另一個型別,並傳回包含轉換過的元素清單。 (繼承自 List<TfvcItem>)。
公用方法 CopyTo(array<T[]) 將整個 List<T> 複製到相容的一維陣列,從目標陣列的開頭開始。 (繼承自 List<TfvcItem>)。
公用方法 CopyTo(array<T[], Int32) 從目標陣列的指定索引處開始,將整個 List<T> 複製到相容的一維陣列中。 (繼承自 List<TfvcItem>)。
公用方法 CopyTo(Int32, array<T[], Int32, Int32) 從目標陣列的指定索引處開始,將元素範圍從 List<T> 複製到相容的一維陣列。 (繼承自 List<TfvcItem>)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 Exists 判斷 List<T> 是否包含符合指定之述詞 (Predicate) 所定義之條件的元素。 (繼承自 List<TfvcItem>)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 Find 搜尋符合指定之述詞所定義的條件之元素,並傳回整個 List<T> 內第一個相符的項目。 (繼承自 List<TfvcItem>)。
公用方法 FindAll 擷取符合指定之述詞所定義的條件之所有元素。 (繼承自 List<TfvcItem>)。
公用方法 FindIndex(Predicate<T>) 搜尋符合指定之述詞所定義的條件之元素,並傳回整個 List<T> 內第一個相符項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 FindIndex(Int32, Predicate<T>) 搜尋符合指定之述詞所定義的條件之元素,並傳回 List<T> 中從指定之索引延伸到最後一個元素的元素範圍內第一個符合項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 FindIndex(Int32, Int32, Predicate<T>) 搜尋符合指定之述詞所定義的條件之元素,並傳回 List<T> 中從指定之索引開始,且包含指定之元素數目的元素範圍內第一個符合項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 FindLast 搜尋符合指定之述詞所定義的條件之元素,並傳回整個 List<T> 內最後一個相符的項目。 (繼承自 List<TfvcItem>)。
公用方法 FindLastIndex(Predicate<T>) 搜尋符合指定之述詞所定義的條件之元素,並傳回整個 List<T> 內最後一個相符項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 FindLastIndex(Int32, Predicate<T>) 搜尋符合指定之述詞所定義的條件之元素,並傳回 List<T> 中從第一個元素延伸到指定之索引的元素範圍內最後一個符合項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 FindLastIndex(Int32, Int32, Predicate<T>) 搜尋符合指定之述詞所定義的條件之元素,並傳回 List<T> 中包含指定之元素數目,且結束於指定之索引的元素範圍內最後一個符合項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 ForEach List<T> 的每一個項目上執行指定之動作。 (繼承自 List<TfvcItem>)。
公用方法 GetEnumerator 傳回在 List<T> 中逐一查看的列舉值。 (繼承自 List<TfvcItem>)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetRange 為來源 List<T> 中的項目範圍建立淺層複本。 (繼承自 List<TfvcItem>)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IndexOf(T) 搜尋指定的物件,並傳回整個 List<T> 中第一個相符項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 IndexOf(T, Int32) List<T> 中從指定的索引開始到最後一個項目這段範圍內,搜尋指定的物件第一次出現的位置,並傳回其索引值 (索引以零起始)。 (繼承自 List<TfvcItem>)。
公用方法 IndexOf(T, Int32, Int32) List<T> 中從指定索引開始且包含指定個數項目的範圍內,搜尋指定的物件第一次出現的位置,並傳回其索引值 (索引以零起始)。 (繼承自 List<TfvcItem>)。
公用方法 Insert 將項目插入 List<T> 中指定的索引處。 (繼承自 List<TfvcItem>)。
公用方法 InsertRange 將集合的元素插入至位於指定索引的 List<T> 中。 (繼承自 List<TfvcItem>)。
公用方法 LastIndexOf(T) 搜尋指定的物件,並傳回整個 List<T> 中最後一個相符項目之以零起始的索引。 (繼承自 List<TfvcItem>)。
公用方法 LastIndexOf(T, Int32) List<T> 中從第一個項目開始到指定的索引這段範圍內,搜尋指定的物件最後一次出現的位置,並傳回其索引值 (索引以零起始)。 (繼承自 List<TfvcItem>)。
公用方法 LastIndexOf(T, Int32, Int32) List<T> 中包含指定個數項目且結尾位於指定索引的範圍內,搜尋指定的物件最後一次出現的位置,並傳回其索引值 (索引以零起始)。 (繼承自 List<TfvcItem>)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 Remove List<T> 移除特定物件的第一個相符項目。 (繼承自 List<TfvcItem>)。
公用方法 RemoveAll 移除符合指定的述詞所定義之條件的所有項目。 (繼承自 List<TfvcItem>)。
公用方法 RemoveAt 移除 List<T> 中指定之索引處的項目。 (繼承自 List<TfvcItem>)。
公用方法 RemoveRange List<T> 移除的元素範圍。 (繼承自 List<TfvcItem>)。
公用方法 Reverse() 反向整個 List<T> 中元素的順序。 (繼承自 List<TfvcItem>)。
公用方法 Reverse(Int32, Int32) 反向指定範圍中元素的順序。 (繼承自 List<TfvcItem>)。
公用方法 Sort() 使用預設比較子來排序在整個 List<T> 中的項目。 (繼承自 List<TfvcItem>)。
公用方法 Sort(IComparer<T>) 使用指定的比較子來排序在整個 List<T> 中的元素。 (繼承自 List<TfvcItem>)。
公用方法 Sort(Comparison<T>) 使用指定的 System.Comparison<T> 來排序在整個 List<T> 中的項目。 (繼承自 List<TfvcItem>)。
公用方法 Sort(Int32, Int32, IComparer<T>) 使用指定的比較子對 List<T> 中某段範圍內的元素進行排序。 (繼承自 List<TfvcItem>)。
公用方法 ToArray List<T> 的元素複製到新的陣列。 (繼承自 List<TfvcItem>)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 TrimExcess 將容量設為 List<T> 中項目的實際數目,如果該數目小於臨界值。 (繼承自 List<TfvcItem>)。
公用方法 TrueForAll 判斷 List<T> 中的每一個項目是否符合指定之述詞所定義的條件。 (繼承自 List<TfvcItem>)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 IList.Add 將項目加入至 IList。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 IList.Contains 判斷 IList 是否包含特定值。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 ICollection.CopyTo 從特定的 Array 索引開始,複製 ICollection 項目至 Array。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 IEnumerable<T>.GetEnumerator 傳回會逐一查看集合的列舉程式。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 IEnumerable.GetEnumerator 傳回會逐一查看集合的列舉程式。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 IList.IndexOf 判斷 IList 中特定項目的索引。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 IList.Insert 將項目插入位於指定索引處的 IList。 (繼承自 List<TfvcItem>)。
明確介面實作私用屬性 IList.IsFixedSize 取得值,指出 IList 是否有固定的大小。 (繼承自 List<TfvcItem>)。
明確介面實作私用屬性 ICollection<T>.IsReadOnly 取得值,指出 ICollection<T> 是否唯讀。 (繼承自 List<TfvcItem>)。
明確介面實作私用屬性 IList.IsReadOnly 取得值,指出 IList 是否唯讀。 (繼承自 List<TfvcItem>)。
明確介面實作私用屬性 ICollection.IsSynchronized 取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。 (繼承自 List<TfvcItem>)。
明確介面實作私用屬性 IList.Item 取得或設定指定之索引處的項目。 (繼承自 List<TfvcItem>)。
明確介面實作私用方法 IList.Remove IList 移除特定物件之第一個符合的元素。 (繼承自 List<TfvcItem>)。
明確介面實作私用屬性 ICollection.SyncRoot 取得可用來同步存取 ICollection 的物件。 (繼承自 List<TfvcItem>)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.SourceControl.WebApi 命名空間