語言

ProviderConnectionPointCollection 類別

定義

包含所有 ProviderConnectionPoint 與特定 WebPart 或伺服器控制相關的物件集合,該控制項在連線中作為提供者。 此類別無法獲得繼承。

public ref class ProviderConnectionPointCollection sealed : System::Collections::ReadOnlyCollectionBase
public sealed class ProviderConnectionPointCollection : System.Collections.ReadOnlyCollectionBase
type ProviderConnectionPointCollection = class
    inherit ReadOnlyCollectionBase
Public NotInheritable Class ProviderConnectionPointCollection
Inherits ReadOnlyCollectionBase
繼承
ProviderConnectionPointCollection

備註

WebPart在網路零件連線中作為提供者的伺服器控制,可以有多個提供者連線點。 提供者中的一個 ProviderConnectionPoint 物件作為任何連線的連接點,作為主要介面實例傳遞給一個或多個消費者。

該 ProviderConnectionPointCollection 類別包含所有與提供者控制相關聯的連接點集合。 Web Parts 控制集中的多個類別需要判斷提供者控制中可用的連接點,當他們決定時,通常會呼叫該 GetProviderConnectionPoints 方法,並回傳一個 ProviderConnectionPointCollection 集合。

Note

此類別繼承自類別, ReadOnlyCollectionBase 使此集合成為強型別、非泛型、唯讀集合。 實例建立後,你無法新增或移除成員。

建構函式

名稱 Description
ProviderConnectionPointCollection()

初始化一個空的新類別實例 ProviderConnectionPointCollection 。

ProviderConnectionPointCollection(ICollection)

利用指定的提供者連接點集合初始化該 ProviderConnectionPointCollection 類別的新實例。

屬性

名稱 Description
Count

取得該實例中包含 ReadOnlyCollectionBase 的元素數量。

(繼承來源 ReadOnlyCollectionBase)
Default

從與特定控制相關的提供者連線點集合中取得預設連線點。

InnerList

取得實例中包含的 ReadOnlyCollectionBase 元素清單。

(繼承來源 ReadOnlyCollectionBase)
Item[Int32]

根據該收藏在收藏中的位置獲得成員資格。

Item[String]

根據唯一的字串識別碼取得集合成員。

方法

名稱 Description
Contains(ProviderConnectionPoint)

回傳一個值,表示某個特定 ProviderConnectionPoint 物件是否存在於集合中。

CopyTo(ProviderConnectionPoint[], Int32)

將集合複製到一組 ProviderConnectionPoint 物件陣列。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

回傳一個枚舉器,會遍歷該 ReadOnlyCollectionBase 實例。

(繼承來源 ReadOnlyCollectionBase)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
IndexOf(ProviderConnectionPoint)

回傳特定 ProviderConnectionPoint 物件在集合中的位置。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

明確介面實作

名稱 Description
ICollection.CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 ReadOnlyCollectionBase 複製到相容的一維 Array。

(繼承來源 ReadOnlyCollectionBase)
ICollection.IsSynchronized

取得值,指出對 ReadOnlyCollectionBase 物件的存取是否同步處理 (線程安全)。

(繼承來源 ReadOnlyCollectionBase)
ICollection.SyncRoot

取得對象,這個物件可用來同步存取 ReadOnlyCollectionBase 物件。

(繼承來源 ReadOnlyCollectionBase)

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)

將 IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別篩選 IEnumerable 的專案。

適用於

另請參閱