EventDescriptorCollection.Sort Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mengurutkan anggota ini EventDescriptorCollection.
Overload
| Nama | Deskripsi |
|---|---|
| Sort(String[], IComparer) |
Mengurutkan anggota EventDescriptorCollectionini , dengan urutan pengurutan tertentu dan IComparer. |
| Sort(String[]) |
Mengurutkan anggota EventDescriptorCollectionini , dengan urutan pengurutan tertentu. |
| Sort() |
Mengurutkan anggota EventDescriptorCollectionini , menggunakan pengurutan default untuk koleksi ini, yang biasanya alfabet. |
| Sort(IComparer) |
Mengurutkan anggota ini EventDescriptorCollection, menggunakan yang ditentukan IComparer. |
Sort(String[], IComparer)
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
Mengurutkan anggota EventDescriptorCollectionini , dengan urutan pengurutan tertentu dan IComparer.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names, System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.EventDescriptorCollection Sort(string[] names, System.Collections.IComparer comparer);
abstract member Sort : string[] * System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
override this.Sort : string[] * System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (names As String(), comparer As IComparer) As EventDescriptorCollection
Parameter
- names
- String[]
Array string yang menjelaskan urutan pengurutan objek EventDescriptor dalam koleksi.
- comparer
- IComparer
IComparer yang digunakan untuk mengurutkan objek EventDescriptor dalam koleksi ini.
Mengembalikan
Yang baru EventDescriptorCollection.
Contoh
Contoh kode berikut mendefinisikan urutan pengurutan untuk metode .Sort Jika EventDescriptorCollection berisi empat objek EventDescriptor dengan nama A, B, C, dan D, properti myNewColl akan diurutkan dalam urutan D, B, A, dan C.
array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})
Keterangan
Urutan pengurutan yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan menggunakan ICompareryang ditentukan.
Note
Atribut HostProtectionAttribute yang diterapkan ke kelas ini memiliki nilai properti berikut Resources : Synchronization. HostProtectionAttribute tidak memengaruhi aplikasi desktop (yang biasanya dimulai dengan mengklik dua kali ikon, mengetik perintah, atau memasukkan URL di browser). Untuk informasi selengkapnya, lihat HostProtectionAttribute kelas atau Atribut Pemrograman SQL Server dan Perlindungan Host.
Lihat juga
Berlaku untuk
Sort(String[])
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
Mengurutkan anggota EventDescriptorCollectionini , dengan urutan pengurutan tertentu.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names);
public virtual System.ComponentModel.EventDescriptorCollection Sort(string[] names);
abstract member Sort : string[] -> System.ComponentModel.EventDescriptorCollection
override this.Sort : string[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (names As String()) As EventDescriptorCollection
Parameter
- names
- String[]
Array string yang menjelaskan urutan pengurutan objek EventDescriptor dalam koleksi.
Mengembalikan
Yang baru EventDescriptorCollection.
Contoh
Contoh kode berikut mendefinisikan urutan pengurutan untuk metode .Sort Jika EventDescriptorCollection berisi empat objek EventDescriptor dengan nama A, B, C, dan D, properti myNewColl akan diurutkan dalam urutan D, B, A, dan C.
array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})
Keterangan
Urutan yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan default untuk koleksi ini, yang biasanya alfabet.
Note
Atribut HostProtectionAttribute yang diterapkan ke kelas ini memiliki nilai properti berikut Resources : Synchronization. HostProtectionAttribute tidak memengaruhi aplikasi desktop (yang biasanya dimulai dengan mengklik dua kali ikon, mengetik perintah, atau memasukkan URL di browser). Untuk informasi selengkapnya, lihat HostProtectionAttribute kelas atau Atribut Pemrograman SQL Server dan Perlindungan Host.
Lihat juga
Berlaku untuk
Sort()
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
Mengurutkan anggota EventDescriptorCollectionini , menggunakan pengurutan default untuk koleksi ini, yang biasanya alfabet.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ Sort();
public virtual System.ComponentModel.EventDescriptorCollection Sort();
abstract member Sort : unit -> System.ComponentModel.EventDescriptorCollection
override this.Sort : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort () As EventDescriptorCollection
Mengembalikan
Yang baru EventDescriptorCollection.
Contoh
Contoh kode berikut mendefinisikan urutan pengurutan untuk metode .Sort Jika EventDescriptorCollection berisi empat objek EventDescriptor dengan nama A, B, C, dan D, properti myNewColl akan diurutkan dalam urutan D, B, A, dan C.
array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})
Keterangan
Note
Atribut HostProtectionAttribute yang diterapkan ke kelas ini memiliki nilai properti berikut Resources : Synchronization. HostProtectionAttribute tidak memengaruhi aplikasi desktop (yang biasanya dimulai dengan mengklik dua kali ikon, mengetik perintah, atau memasukkan URL di browser). Untuk informasi selengkapnya, lihat HostProtectionAttribute kelas atau Atribut Pemrograman SQL Server dan Perlindungan Host.
Berlaku untuk
Sort(IComparer)
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
- Sumber:
- EventDescriptorCollection.cs
Mengurutkan anggota ini EventDescriptorCollection, menggunakan yang ditentukan IComparer.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ Sort(System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.EventDescriptorCollection Sort(System.Collections.IComparer comparer);
abstract member Sort : System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
override this.Sort : System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (comparer As IComparer) As EventDescriptorCollection
Parameter
- comparer
- IComparer
IComparer yang digunakan untuk mengurutkan objek EventDescriptor dalam koleksi ini.
Mengembalikan
Yang baru EventDescriptorCollection.
Contoh
Contoh kode berikut mendefinisikan urutan pengurutan untuk metode .Sort Jika EventDescriptorCollection berisi empat objek EventDescriptor dengan nama A, B, C, dan D, properti myNewColl akan diurutkan dalam urutan D, B, A, dan C.
array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})
Keterangan
IComparer yang ditentukan diterapkan terlebih dahulu, diikuti dengan pengurutan default untuk koleksi ini, yang biasanya alfabet.
Note
Atribut HostProtectionAttribute yang diterapkan ke kelas ini memiliki nilai properti berikut Resources : Synchronization. HostProtectionAttribute tidak memengaruhi aplikasi desktop (yang biasanya dimulai dengan mengklik dua kali ikon, mengetik perintah, atau memasukkan URL di browser). Untuk informasi selengkapnya, lihat HostProtectionAttribute kelas atau Atribut Pemrograman SQL Server dan Perlindungan Host.