TransformerTypeCollection TransformerTypeCollection TransformerTypeCollection TransformerTypeCollection Class

定义

提供 WebPartTransformer 对象的只读集合。Provides a read-only collection of WebPartTransformer objects.

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

注解

类表示对象的只读集合, 通常由ConnectionsZoneWebPartManager对象用于管理WebPartTransformer对象集。 TransformerTypeCollectionThe TransformerTypeCollection class represents a read-only collection of objects, typically used by ConnectionsZone and WebPartManager objects to manage sets of WebPartTransformer objects.

ConnectionsZone WebPartTransformer TransformerTypeCollection控件使用集合在页上保留可用对象列表, 而对象使用集合来跟踪它所包含的可用WebPartTransformer对象。 TransformerTypeCollection WebPartManagerA WebPartManager control uses a TransformerTypeCollection collection to keep a list of available WebPartTransformer objects on a page, whereas a ConnectionsZone object uses a TransformerTypeCollection collection to track the available WebPartTransformer objects that it contains.

尽管该TransformerTypeCollection集合是只读的, 但您可以对集合中引用的基础控件的属性进行编程更改。Although the TransformerTypeCollection collection is read-only, you can make programmatic changes to the properties of the underlying controls referenced in the collection.

构造函数

TransformerTypeCollection() TransformerTypeCollection() TransformerTypeCollection() TransformerTypeCollection()

初始化 TransformerTypeCollection 类的新实例,新实例中不包含任何成员。Initializes a new instance of the TransformerTypeCollection class with no members in the collection.

TransformerTypeCollection(ICollection) TransformerTypeCollection(ICollection) TransformerTypeCollection(ICollection) TransformerTypeCollection(ICollection)

初始化 TransformerTypeCollection 类的新实例,新实例中包含指定的 WebPartTransformer 对象。Initializes a new instance of the TransformerTypeCollection class containing the specified WebPartTransformer objects.

TransformerTypeCollection(TransformerTypeCollection, ICollection) TransformerTypeCollection(TransformerTypeCollection, ICollection) TransformerTypeCollection(TransformerTypeCollection, ICollection) TransformerTypeCollection(TransformerTypeCollection, ICollection)

通过合并现有 TransformerTypeCollection 集合和指定的 TransformerTypeCollection 对象,初始化 WebPartTransformer 类的新实例。Initializes a new instance of the TransformerTypeCollection class by combining an existing TransformerTypeCollection collection with the specified WebPartTransformer objects.

字段

Empty Empty Empty Empty

创建一个用于存储转换器的集合。Creates a collection for storing transformers.

属性

Count Count Count Count

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

(Inherited from ReadOnlyCollectionBase)
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.

方法

Contains(Type) Contains(Type) Contains(Type) Contains(Type)

返回一个值,该值指示集合中是否存在特定转换器。Returns a value indicating whether a particular transformer exists in the collection.

CopyTo(Type[], Int32) CopyTo(Type[], Int32) CopyTo(Type[], Int32) CopyTo(Type[], Int32)

将集合复制到 WebPartTransformer 对象的数组。Copies the collection to an array of WebPartTransformer 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(Type) IndexOf(Type) IndexOf(Type) IndexOf(Type)

返回集合中特定成员的位置。Returns the position of a particular member in the 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.

适用于