ProviderConnectionPointCollection ProviderConnectionPointCollection ProviderConnectionPointCollection ProviderConnectionPointCollection Class

定义

包含与充当连接中的提供者的特定 ProviderConnectionPoint 或服务器控件相关联的所有 WebPart 对象的集合。Contains a collection of all ProviderConnectionPoint objects associated with a particular WebPart or server control acting as a provider in a connection. 此类不能被继承。This class cannot be inherited.

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
继承
ProviderConnectionPointCollectionProviderConnectionPointCollectionProviderConnectionPointCollectionProviderConnectionPointCollection

注解

作为 Web 部件连接中的提供者的或服务器控件可以有多个提供程序连接点。WebPartA WebPart or server control acting as a provider in a Web Parts connection can have multiple provider connection points. 提供ProviderConnectionPoint程序中的一个对象充当任何给定连接的连接点, 作为要传递给一个或多个使用者的主接口实例。One ProviderConnectionPoint object in a provider acts as the connection point for any given connection, serving as the primary interface instance to pass to one or more consumers.

ProviderConnectionPointCollection类包含与提供程序控件关联的所有连接点的集合。The ProviderConnectionPointCollection class contains the collection of all the connection points associated with a provider control. Web 部件控件集中的多个类需要确定提供程序控件上可用的连接点, 而它们通常调用GetProviderConnectionPoints方法, 这将返回一个ProviderConnectionPointCollection集合。Several classes in the Web Parts control set need to determine what connection points are available on a provider control, and when they do they typically call the GetProviderConnectionPoints method, which returns a ProviderConnectionPointCollection collection.

备注

此类继承自ReadOnlyCollectionBase类, 使此集合成为强类型的非泛型只读集合。This class inherits from the ReadOnlyCollectionBase class, making this collection a strongly typed, non-generic, read-only collection. 创建实例后, 不能添加或删除成员。You cannot add or remove members after an instance has been created.

构造函数

ProviderConnectionPointCollection() ProviderConnectionPointCollection() ProviderConnectionPointCollection() ProviderConnectionPointCollection()

初始化 ProviderConnectionPointCollection 类的空的新实例。Initializes an empty new instance of the ProviderConnectionPointCollection class.

ProviderConnectionPointCollection(ICollection) ProviderConnectionPointCollection(ICollection) ProviderConnectionPointCollection(ICollection) ProviderConnectionPointCollection(ICollection)

使用指定的提供者连接点的集合初始化 ProviderConnectionPointCollection 类的新实例。Initializes a new instance of the ProviderConnectionPointCollection class using the specified collection of provider connection points.

属性

Count Count Count Count

获取包含在 ReadOnlyCollectionBase 实例中的元素数。Gets the number of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Default Default Default Default

从与特定控件关联的提供者连接点集合获取默认连接点。Gets the default connection point from the collection of provider connection points associated with a particular control.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

获取一个值,该值指示对 ReadOnlyCollectionBase 对象的访问是否同步(线程安全)。Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).

(Inherited from ReadOnlyCollectionBase)
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

获取一个对象,该对象可用于同步对 ReadOnlyCollectionBase 对象的访问。Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.

(Inherited from ReadOnlyCollectionBase)
InnerList InnerList InnerList InnerList

获取 ReadOnlyCollectionBase 实例中包含的元素的列表。Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

根据集合成员在集合中的位置获取该成员。Gets a member of the collection based on its position in the collection.

Item[String] Item[String] Item[String] Item[String]

根据唯一字符串标识符获取集合的成员。Gets a member of the collection based on a unique string identifier.

方法

Contains(ProviderConnectionPoint) Contains(ProviderConnectionPoint) Contains(ProviderConnectionPoint) Contains(ProviderConnectionPoint)

返回一个值,该值指示集合中是否存在特定的 ProviderConnectionPoint 对象。Returns a value indicating whether a particular ProviderConnectionPoint object exists in the collection.

CopyTo(ProviderConnectionPoint[], Int32) CopyTo(ProviderConnectionPoint[], Int32) CopyTo(ProviderConnectionPoint[], Int32) CopyTo(ProviderConnectionPoint[], Int32)

将集合复制到 ProviderConnectionPoint 对象的数组。Copies the collection to an array of ProviderConnectionPoint objects.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回循环访问 ReadOnlyCollectionBase 实例的枚举器。Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
IndexOf(ProviderConnectionPoint) IndexOf(ProviderConnectionPoint) IndexOf(ProviderConnectionPoint) IndexOf(ProviderConnectionPoint)

返回集合中特定 ProviderConnectionPoint 对象的位置。Returns the position of a particular ProviderConnectionPoint object within a collection.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

从目标数组的指定索引处开始将整个 ReadOnlyCollectionBase 复制到兼容的一维 ArrayCopies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from ReadOnlyCollectionBase)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅