PropertyDescriptorCollection.Sort Metode

Definisi

Mengurutkan anggota koleksi ini.

Overload

Sort()

Mengurutkan anggota koleksi ini, menggunakan pengurutan default untuk koleksi ini, yang biasanya alfabet.

Sort(IComparer)

Mengurutkan anggota koleksi ini, menggunakan yang ditentukan IComparer.

Sort(String[])

Mengurutkan anggota koleksi ini. Urutan yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan default untuk koleksi ini, yang biasanya alfabet.

Sort(String[], IComparer)

Mengurutkan anggota koleksi ini. Urutan yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan menggunakan yang ditentukan IComparer.

Sort()

Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs

Mengurutkan anggota koleksi ini, menggunakan pengurutan default untuk koleksi ini, yang biasanya alfabet.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort();
public virtual System.ComponentModel.PropertyDescriptorCollection Sort ();
abstract member Sort : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort () As PropertyDescriptorCollection

Mengembalikan

PropertyDescriptorCollection Baru yang berisi objek yang diurutkanPropertyDescriptor.

Berlaku untuk

Sort(IComparer)

Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs

Mengurutkan anggota koleksi ini, menggunakan yang ditentukan IComparer.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort (System.Collections.IComparer comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort (System.Collections.IComparer? comparer);
abstract member Sort : System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (comparer As IComparer) As PropertyDescriptorCollection

Parameter

comparer
IComparer

Perbandingan yang digunakan untuk mengurutkan PropertyDescriptor objek dalam koleksi ini.

Mengembalikan

PropertyDescriptorCollection Baru yang berisi objek yang diurutkanPropertyDescriptor.

Lihat juga

Berlaku untuk

Sort(String[])

Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs

Mengurutkan anggota koleksi ini. Urutan yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan default untuk koleksi ini, yang biasanya alfabet.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort (string[] names);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort (string[]? names);
abstract member Sort : string[] -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : string[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (names As String()) As PropertyDescriptorCollection

Parameter

names
String[]

Array string yang menjelaskan urutan untuk mengurutkan PropertyDescriptor objek dalam koleksi ini.

Mengembalikan

PropertyDescriptorCollection Baru yang berisi objek yang diurutkanPropertyDescriptor.

Contoh

Contoh kode berikut menentukan urutan pengurutan untuk metode .Sort PropertyDescriptorCollection Jika berisi empat PropertyDescriptor objek dengan nama A, , B, Cdan D, properti myNewColl akan diurutkan dalam urutan D, , BA, dan C.

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = this.Sort(new string[]{"D", "B"});
myNewColl = Me.Sort(New String() {"D", "B"})

Lihat juga

Berlaku untuk

Sort(String[], IComparer)

Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs
Sumber:
PropertyDescriptorCollection.cs

Mengurutkan anggota koleksi ini. Urutan yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan menggunakan yang ditentukan IComparer.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names, System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort (string[] names, System.Collections.IComparer comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort (string[]? names, System.Collections.IComparer? comparer);
abstract member Sort : string[] * System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : string[] * System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (names As String(), comparer As IComparer) As PropertyDescriptorCollection

Parameter

names
String[]

Array string yang menjelaskan urutan untuk mengurutkan PropertyDescriptor objek dalam koleksi ini.

comparer
IComparer

Perbandingan yang digunakan untuk mengurutkan PropertyDescriptor objek dalam koleksi ini.

Mengembalikan

PropertyDescriptorCollection Baru yang berisi objek yang diurutkanPropertyDescriptor.

Contoh

Contoh kode berikut menentukan urutan pengurutan untuk metode .Sort PropertyDescriptorCollection Jika berisi empat PropertyDescriptor objek dengan nama A, , B, Cdan D, properti myNewColl akan diurutkan dalam urutan D, , BA, dan C.

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = this.Sort(new string[]{"D", "B"});
myNewColl = Me.Sort(New String() {"D", "B"})

Lihat juga

Berlaku untuk