Edit

Kongsi melalui


TransformerTypeCollection Class

Definition

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
Inheritance
TransformerTypeCollection

Remarks

The TransformerTypeCollection class represents a read-only collection of objects, typically used by ConnectionsZone and WebPartManager objects to manage sets of WebPartTransformer objects.

A 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.

Although the TransformerTypeCollection collection is read-only, you can make programmatic changes to the properties of the underlying controls referenced in the collection.

Constructors

TransformerTypeCollection()

Initializes a new instance of the TransformerTypeCollection class with no members in the collection.

TransformerTypeCollection(ICollection)

Initializes a new instance of the TransformerTypeCollection class containing the specified WebPartTransformer objects.

TransformerTypeCollection(TransformerTypeCollection, ICollection)

Initializes a new instance of the TransformerTypeCollection class by combining an existing TransformerTypeCollection collection with the specified WebPartTransformer objects.

Fields

Empty

Creates a collection for storing transformers.

Properties

Count

Gets the number of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
InnerList

Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Item[Int32]

Gets a member of the collection based on its position in the collection.

Methods

Contains(Type)

Returns a value indicating whether a particular transformer exists in the collection.

CopyTo(Type[], Int32)

Copies the collection to an array of WebPartTransformer objects.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(Type)

Returns the position of a particular member in the collection.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from ReadOnlyCollectionBase)
ICollection.IsSynchronized

Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).

(Inherited from ReadOnlyCollectionBase)
ICollection.SyncRoot

Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.

(Inherited from ReadOnlyCollectionBase)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to