IComNativeDescriptorHandler.GetEvents 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.
Mendapatkan peristiwa untuk komponen yang ditentukan.
Overload
GetEvents(Object) |
Mendapatkan peristiwa untuk komponen yang ditentukan. |
GetEvents(Object, Attribute[]) |
Mendapatkan peristiwa dengan atribut yang ditentukan untuk komponen yang ditentukan. |
GetEvents(Object)
Mendapatkan peristiwa untuk komponen yang ditentukan.
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component);
public System.ComponentModel.EventDescriptorCollection GetEvents (object component);
abstract member GetEvents : obj -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (component As Object) As EventDescriptorCollection
Parameter
- component
- Object
Komponen untuk mendapatkan peristiwa.
Mengembalikan
Kumpulan deskriptor peristiwa untuk component
.
Keterangan
Catatan
API ini kini kedaluwarsa. Alternatif yang tidak usang adalah ComObjectType.
Berlaku untuk
GetEvents(Object, Attribute[])
Mendapatkan peristiwa dengan atribut yang ditentukan untuk komponen yang ditentukan.
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents (object component, Attribute[] attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents (object component, Attribute[]? attributes);
abstract member GetEvents : obj * Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (component As Object, attributes As Attribute()) As EventDescriptorCollection
Parameter
- component
- Object
Komponen untuk mendapatkan peristiwa.
- attributes
- Attribute[]
Atribut yang digunakan untuk memfilter peristiwa.
Mengembalikan
Kumpulan deskriptor peristiwa untuk component
.
Keterangan
Catatan
API ini kini kedaluwarsa. Alternatif yang tidak usang adalah ComObjectType.
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk