ProviderConnectionPointCollection 類別

定義

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

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 元件控制項集中的數個類別需要判斷提供者控制項有哪些連接點可用,以及何時會呼叫 GetProviderConnectionPoints 方法,以傳回 ProviderConnectionPointCollection 集合。

注意

這個類別繼承自 ReadOnlyCollectionBase 類別,使這個集合成為強型別的非泛型唯讀集合。 您無法在建立實例之後新增或移除成員。

建構函式

ProviderConnectionPointCollection()

初始化 ProviderConnectionPointCollection 類別新的空執行個體。

ProviderConnectionPointCollection(ICollection)

使用指定的提供者連接點集合,初始化 ProviderConnectionPointCollection 類別的新執行個體。

屬性

Count

取得 ReadOnlyCollectionBase 執行個體中包含的元素數目。

(繼承來源 ReadOnlyCollectionBase)
Default

從與特定控制項關聯的提供者連接點集合中,取得預設連接點。

InnerList

取得包含於 ReadOnlyCollectionBase 執行個體中的項目清單。

(繼承來源 ReadOnlyCollectionBase)
Item[Int32]

根據成員在集合中的位置,取得集合的成員。

Item[String]

根據唯一字串識別項,取得集合成員。

方法

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)

明確介面實作

ICollection.CopyTo(Array, Int32)

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

(繼承來源 ReadOnlyCollectionBase)
ICollection.IsSynchronized

取得值,指出對 ReadOnlyCollectionBase 物件的存取是否為同步的 (執行緒安全)。

(繼承來源 ReadOnlyCollectionBase)
ICollection.SyncRoot

取得可用來同步存取 ReadOnlyCollectionBase 物件的物件。

(繼承來源 ReadOnlyCollectionBase)

擴充方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於

另請參閱