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

Récupère les événements pour cette instance d'un composant à l'aide de le tableau spécifiée d'attribut en tant que filtre.

Espace de noms :  Microsoft.VisualStudio.Data
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 utilisé comme filtre

Valeur de retour

Type : EventDescriptorCollection
Retourne 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 d' GetEvents . Pour plus d'informations sur la méthode d' GetEvents(System.Attribute[]) 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

DataConnectionProperties Classe

GetEvents, surcharge

Microsoft.VisualStudio.Data, espace de noms