ConsumerConnectionPointCollection 类

定义

表示 Web 部件区域中充当使用者的控件的连接点集合。Represents a collection of connection points for a control in a Web Parts zone acting as a consumer. 此类不能被继承。This class cannot be inherited.

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

注解

默认情况下, 充当使用者的 Web 部件区域中的控件只能连接到一个提供程序。A control in a Web Parts zone acting as a consumer can connect to only one provider by default. 但是, 当AllowsMultipleConnections属性设置为true时, 多个提供程序可以连接到使用者。However, when the AllowsMultipleConnections property is set to true, multiple providers can connect to the consumer.

请注意, 此类继承自ReadOnlyCollectionBase类, 使此集合成为强类型的非泛型只读集合。Note that 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.

构造函数

ConsumerConnectionPointCollection()

初始化 ConsumerConnectionPointCollection 类的新实例。Initializes a new instance of the ConsumerConnectionPointCollection class.

ConsumerConnectionPointCollection(ICollection)

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

属性

Count

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

(继承自 ReadOnlyCollectionBase)
Default

获取默认的使用者连接点。Gets the default consumer connection point.

InnerList

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

(继承自 ReadOnlyCollectionBase)
Item[Int32]

获取集合中整数值所指定的位置处的项。Gets the item in the collection at the location specified by the integer value.

Item[String]

获取具有指定 ID 属性的连接点。Gets the connection point with the specified ID property.

方法

Contains(ConsumerConnectionPoint)

确定指定的 ConsumerConnectionPoint 对象是否在集合中。Determines whether the specified ConsumerConnectionPoint object is in the collection.

CopyTo(ConsumerConnectionPoint[], Int32)

ConsumerConnectionPointCollection 集合中的所有项复制到一个兼容的一维数组中,该数组的元素为 ConsumerConnectionPoint 对象,复制从目标数组的指定索引处开始进行。Copies all the items from the ConsumerConnectionPointCollection collection to a compatible one-dimensional array of ConsumerConnectionPoint objects, starting at the specified index in the target array.

Equals(Object)

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

(继承自 Object)
GetEnumerator()

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

(继承自 ReadOnlyCollectionBase)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
IndexOf(ConsumerConnectionPoint)

确定集合中指定 ConsumerConnectionPoint 对象的索引。Determines the index of the specified ConsumerConnectionPoint object in the collection.

MemberwiseClone()

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

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

ICollection.CopyTo(Array, Int32)

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

(继承自 ReadOnlyCollectionBase)
ICollection.IsSynchronized

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

(继承自 ReadOnlyCollectionBase)
ICollection.SyncRoot

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

(继承自 ReadOnlyCollectionBase)

扩展方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

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

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于