共用方式為


SyncList<TListType> 類別

這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

表示 TListType 型別的清單,並與物件同步處理。

繼承階層架構

Object
  Collection<TListType>
    Microsoft.Reporting.WinForms.SyncList<TListType>
      Microsoft.Reporting.WinForms.ReportDataSourceCollection
      Microsoft.Reporting.WinForms.ReportViewerCookieCollection
      Microsoft.Reporting.WinForms.ReportViewerHeaderCollection

命名空間:  Microsoft.Reporting.WinForms
組件:  Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)

語法

'宣告
<SerializableAttribute> _
Public Class SyncList(Of TListType) _
    Inherits Collection(Of TListType)
[SerializableAttribute]
public class SyncList<TListType> : Collection<TListType>
[SerializableAttribute]
generic<typename TListType>
public ref class SyncList : public Collection<TListType>
[<SerializableAttribute>]
type SyncList<'TListType> =  
    class
        inherit Collection<'TListType>
    end
JScript 不支援泛型型別或方法。

類型參數

  • TListType
    清單中項目的型別。

SyncList<TListType> 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Count 取得 Collection 中實際包含的項目數目。 (繼承自 Collection<TListType>)。
公用屬性 Item 取得或設定指定之索引處的項目。 (繼承自 Collection<TListType>)。
受保護的屬性 Items 取得 Collection 周圍的 IList 包裝函式。 (繼承自 Collection<TListType>)。

回頁首

方法

  名稱 描述
公用方法 Add 將物件加入至 Collection 的結尾。 (繼承自 Collection<TListType>)。
公用方法 Clear 將所有項目從 Collection 移除。 (繼承自 Collection<TListType>)。
受保護的方法 ClearItems 基礎架構。 從清單中移除所有項目。 (覆寫 Collection.ClearItems()。)
公用方法 Contains 判斷某項目是否在 Collection 中。 (繼承自 Collection<TListType>)。
公用方法 CopyTo 從目標陣列之指定的索引開始,將整個 Collection 複製到相容的一維 Array。 (繼承自 Collection<TListType>)。
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetEnumerator 傳回在 Collection 中逐一查看的列舉值。 (繼承自 Collection<TListType>)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 IndexOf 搜尋指定的物件,並傳回整個 Collection 中第一個相符項目之以零起始的索引。 (繼承自 Collection<TListType>)。
公用方法 Insert 將項目插入 Collection 中指定的索引處。 (繼承自 Collection<TListType>)。
受保護的方法 InsertItem 基礎架構。 將項目插入至清單中指定的索引處。 (覆寫 Collection.InsertItem(Int32, UTP)。)
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 Remove 從 Collection 移除特定物件的第一個相符項目。 (繼承自 Collection<TListType>)。
公用方法 RemoveAt 移除 Collection 中指定之索引處的項目。 (繼承自 Collection<TListType>)。
受保護的方法 RemoveItem 基礎架構。 移除指定索引中的項目。 (覆寫 Collection.RemoveItem(Int32)。)
受保護的方法 SetItem 基礎架構。 取代指定之索引處的項目。 (覆寫 Collection.SetItem(Int32, UTP)。)
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

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

回頁首

執行緒安全

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

請參閱

參考

Microsoft.Reporting.WinForms 命名空間