Condividi tramite


Metodo DataConnectionProperties.ICustomTypeDescriptor.GetEvents (array<Attribute[])

Recupera gli eventi per l'istanza di un componente, utilizzando la matrice specificata come attributo di filtro.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Sintassi

'Dichiarazione
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 non supporta le implementazioni esplicite dell'interfaccia.

Parametri

  • attributes
    Tipo: array<Attribute[]

    Una matrice di tipo Attribute utilizzato come filtro

Valore restituito

Tipo: EventDescriptorCollection
Una raccolta EventDescriptorCollection che rappresenta gli eventi filtrati per l'istanza del componente specificata.

Implementa

ICustomTypeDescriptor.GetEvents(Attribute)

Note

Questo metodo fornisce un'implementazione di metodo GetEvents. Per ulteriori informazioni, vedere il metodo GetEvents(System.Attribute[]) nella libreria di classi .NET Framework.

Se viene specificato un oggetto Attribute nella matrice attributes e all'evento non è associata alcuna istanza della classe per tale attributo, la matrice restituita include l'evento nel caso in cui Attribute costituisca l'evento predefinito.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataConnectionProperties Classe

Overload GetEvents

Spazio dei nomi Microsoft.VisualStudio.Data.Framework