DesignerCollection Kelas

Definisi

Mewakili koleksi desainer.

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
Warisan
DesignerCollection
Penerapan

Contoh

Contoh kode berikut membuat yang diinisialisasi DesignerCollection dengan array IDesignerHost objek tertentu.

// 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})

Keterangan

Objek koleksi ini dapat menyimpan referensi ke sekumpulan perancang.

Konstruktor

Nama Deskripsi
DesignerCollection(IDesignerHost[])

Menginisialisasi instans DesignerCollection baru kelas yang berisi perancang yang ditentukan.

DesignerCollection(IList)

Menginisialisasi instans DesignerCollection baru kelas yang berisi sekumpulan perancang yang ditentukan.

Properti

Nama Deskripsi
Count

Mendapatkan jumlah desainer dalam koleksi.

Item[Int32]

Mendapatkan perancang pada indeks yang ditentukan.

Metode

Nama Deskripsi
Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetEnumerator()

Mendapatkan enumerator baru untuk koleksi ini.

GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()

Mendapatkan Type instans saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari Objectsaat ini.

(Diperoleh dari Object)
ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)

Implementasi Antarmuka Eksplisit

Nama Deskripsi
ICollection.CopyTo(Array, Int32)

Menyalin elemen koleksi ke Array, dimulai pada indeks tertentu Array .

ICollection.Count

Mendapatkan jumlah elemen yang terkandung dalam koleksi.

ICollection.IsSynchronized

Mendapatkan nilai yang menunjukkan apakah akses ke ICollection disinkronkan (utas aman).

ICollection.SyncRoot

Mendapatkan objek yang dapat digunakan untuk menyinkronkan akses ke koleksi.

IEnumerable.GetEnumerator()

Mendapatkan enumerator baru untuk koleksi ini.

Metode Ekstensi

Nama Deskripsi
AsParallel(IEnumerable)

Mengaktifkan paralelisasi kueri.

AsQueryable(IEnumerable)

Mengonversi IEnumerable menjadi IQueryable.

Cast<TResult>(IEnumerable)

Melemparkan elemen IEnumerable ke jenis yang ditentukan.

OfType<TResult>(IEnumerable)

Memfilter elemen IEnumerable berdasarkan jenis tertentu.

Berlaku untuk