Share via


AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetEvents, méthode (array<Attribute[])

Récupère les événements de cette instance d'un composant en utilisant le tableau spécifié d'attribut comme filtre.

Espace de noms :  Microsoft.VisualStudio.Data.AdoDotNet
Assembly :  Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)

Syntaxe

'Déclaration
Private Function GetEvents ( _
    attributes As Attribute() _
) As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(
    Attribute[] attributes
)
private:
virtual EventDescriptorCollection^ GetEvents(
    array<Attribute^>^ attributes
) sealed = ICustomTypeDescriptor::GetEvents
private abstract GetEvents : 
        attributes:Attribute[] -> EventDescriptorCollection  
private override GetEvents : 
        attributes:Attribute[] -> EventDescriptorCollection
JScript ne prend pas en charge les implémentations d'interfaces explicites.

Paramètres

  • attributes
    Type : array<Attribute[]

    Un tableau de type Attribute qui est utilisé comme filtre

Valeur de retour

Type : EventDescriptorCollection
Retourne un EventDescriptorCollection représentant les événements filtrés pour l'instance de composant spécifiée.

Implémentations

ICustomTypeDescriptor.GetEvents(Attribute)

Notes

Cette méthode fournit une implémentation de la méthode GetEvents. Pour plus d'informations consultez la méthode GetEvents dans la bibliothèque de classes d'.NET Framework.

Si Attribute est spécifié dans le tableau attributes et si l'événement n'a pas d'instance de la classe pour cet attribut, le tableau retourné comprend l'événement si Attribute est l'événement par défaut.

Sécurité .NET Framework

Voir aussi

Référence

AdoDotNetConnectionProperties Classe

GetEvents, surcharge

Microsoft.VisualStudio.Data.AdoDotNet, espace de noms