DesignerCollection Třída

Definice

Představuje kolekci návrhářů.

public ref class DesignerCollection : System::Collections::ICollection
public class DesignerCollection : System.Collections.ICollection
type DesignerCollection = class
    interface ICollection
    interface IEnumerable
Public Class DesignerCollection
Implements ICollection
Dědičnost
DesignerCollection
Implementuje

Příklady

Následující příklad kódu vytvoří DesignerCollection inicializovaný se zadaným polem IDesignerHost objektů.

// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
array<IDesignerHost^>^temp0 = {designerhost1,designerhost2};
DesignerCollection^ collection = gcnew DesignerCollection( temp0 );
// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
DesignerCollection collection = new DesignerCollection( 
    new IDesignerHost[] { designerhost1, designerhost2 } );
' Create a DesignerCollection using a constructor
' that accepts an array of IDesignerHost objects with
' which to initialize the collection.
Dim collection As New DesignerCollection(New IDesignerHost() {designerhost1, designerhost2})

Poznámky

Tento objekt kolekce může ukládat odkazy na sadu návrhářů.

Konstruktory

Name Description
DesignerCollection(IDesignerHost[])

Inicializuje novou instanci DesignerCollection třídy, která obsahuje zadané návrháře.

DesignerCollection(IList)

Inicializuje novou instanci DesignerCollection třídy, která obsahuje zadanou sadu návrhářů.

Vlastnosti

Name Description
Count

Získá počet návrhářů v kolekci.

Item[Int32]

Získá návrhář v zadaném indexu.

Metody

Name Description
Equals(Object)

Určuje, zda je zadaný objekt roven aktuálnímu objektu.

(Zděděno od Object)
GetEnumerator()

Získá nový enumerátor pro tuto kolekci.

GetHashCode()

Slouží jako výchozí funkce hash.

(Zděděno od Object)
GetType()

Získá Type aktuální instance.

(Zděděno od Object)
MemberwiseClone()

Vytvoří mělkou kopii aktuálního Object.

(Zděděno od Object)
ToString()

Vrátí řetězec, který představuje aktuální objekt.

(Zděděno od Object)

Explicitní implementace rozhraní

Name Description
ICollection.CopyTo(Array, Int32)

Zkopíruje prvky kolekce do objektu Array, počínaje konkrétním Array indexem.

ICollection.Count

Získá počet prvků obsažených v kolekci.

ICollection.IsSynchronized

Získá hodnotu označující, zda je přístup k ICollection této synchronizaci (bezpečné vlákno).

ICollection.SyncRoot

Získá objekt, který lze použít k synchronizaci přístupu k kolekci.

IEnumerable.GetEnumerator()

Získá nový enumerátor pro tuto kolekci.

Metody rozšíření

Name Description
AsParallel(IEnumerable)

Umožňuje paralelizaci dotazu.

AsQueryable(IEnumerable)

Převede IEnumerable na IQueryable.

Cast<TResult>(IEnumerable)

Přetypuje prvky IEnumerable na zadaný typ.

OfType<TResult>(IEnumerable)

Filtruje prvky IEnumerable na základě zadaného typu.

Platí pro