ConnectionInterfaceCollection 类

定义

表示用于 Web 部件连接的接口的集合。Represents a collection of interfaces for use in Web Parts connections.

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

注解

提供程序和使用者之间的通信需要在接口中定义协定。Communication between a provider and consumer requires a contract defined in an interface. 此集合包含使用者支持的所有通信接口。This collection contains all the communication interfaces supported by the consumer. ProviderConnectionPoint.GetSecondaryInterfaces 方法返回 ConnectionInterfaceCollection 对象。The ProviderConnectionPoint.GetSecondaryInterfaces method returns a ConnectionInterfaceCollection object.

构造函数

ConnectionInterfaceCollection()

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

ConnectionInterfaceCollection(ConnectionInterfaceCollection, ICollection)

通过组合两个指定的集合初始化 ConnectionInterfaceCollection 类的新实例。Initializes a new instance of the ConnectionInterfaceCollection class by combining the two specified collections.

ConnectionInterfaceCollection(ICollection)

用指定的集合初始化 ConnectionInterfaceCollection 类的新实例。Initializes a new instance of the ConnectionInterfaceCollection class with the specified collection.

字段

Empty

引用 ConnectionInterfaceCollection 类的静态只读实例。References a static, read-only instance of the ConnectionInterfaceCollection class.

属性

Count

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

(继承自 ReadOnlyCollectionBase)
InnerList

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

(继承自 ReadOnlyCollectionBase)
Item[Int32]

获取指定索引处的元素。Gets the element at the specified index.

方法

Contains(Type)

确定 ConnectionInterfaceCollection 对象是否包含特定值。Determines whether the ConnectionInterfaceCollection object contains a specific value.

CopyTo(Type[], Int32)

从目标数组的指定索引处开始将整个 ReadOnlyCollectionBase 对象复制到兼容的一维 ArrayCopies the entire ReadOnlyCollectionBase object to a compatible one-dimensional Array, starting at the specified index of 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(Type)

搜索指定的对象,并返回整个 ConnectionInterfaceCollection 集合中第一个匹配项的从零开始的索引。Searches for the specified object and returns the zero-based index of the first occurrence within the entire ConnectionInterfaceCollection 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.

适用于