Share via


DataSourceCredentialsCollection 類別

表示 DataSourceCredentials 物件的集合。

繼承階層架構

Object
  Collection<DataSourceCredentials>
    Microsoft.Reporting.WinForms.DataSourceCredentialsCollection

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

語法

'宣告
Public NotInheritable Class DataSourceCredentialsCollection _
    Inherits Collection(Of DataSourceCredentials)
public sealed class DataSourceCredentialsCollection : Collection<DataSourceCredentials>
public ref class DataSourceCredentialsCollection sealed : public Collection<DataSourceCredentials^>
[<Sealed>]
type DataSourceCredentialsCollection =  
    class
        inherit Collection<DataSourceCredentials>
    end
public final class DataSourceCredentialsCollection extends Collection<DataSourceCredentials>

DataSourceCredentialsCollection 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 DataSourceCredentialsCollection 初始化 DataSourceCredentialsCollection 類別的新執行個體。

回頁首

屬性

  名稱 描述
公用屬性 Count 取得 Collection 中實際包含的項目數目。 (繼承自 Collection<DataSourceCredentials>)。
公用屬性 Item(Int32) 取得或設定指定之索引處的項目。 (繼承自 Collection<DataSourceCredentials>)。
公用屬性 Item[String] 從集合取得具有指定之名稱的 DataSourceCredentials 物件。

回頁首

方法

  名稱 描述
公用方法 Add 將物件加入至 Collection 的結尾。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 Clear 將所有項目從 Collection 移除。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 Contains 判斷某項目是否在 Collection 中。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 CopyTo 從目標陣列之指定的索引開始,將整個 Collection 複製到相容的一維 Array。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
公用方法 GetEnumerator 傳回在 Collection 中逐一查看的列舉值。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 IndexOf 搜尋指定的物件,並傳回整個 Collection 中第一個相符項目之以零起始的索引。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 Insert 將項目插入 Collection 中指定的索引處。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 Remove 從 Collection 移除特定物件的第一個相符項目。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 RemoveAt 移除 Collection 中指定之索引處的項目。 (繼承自 Collection<DataSourceCredentials>)。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

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

回頁首

備註

這個類別是由 ReportCredentialsEventArgs 中的 Credentials 屬性所參考。

執行緒安全

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

請參閱

參考

Microsoft.Reporting.WinForms 命名空間