Metodo DataConnectionProperties.ICustomTypeDescriptor.GetEvents (array<Attribute[])
Recupera gli eventi per l'istanza di un componente utilizzando la matrice specificata di attributo come filtro.
Spazio dei nomi: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.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
Restituisce EventDescriptorCollection che rappresenta gli eventi filtrati per l'istanza del componente specificato.
Implementa
ICustomTypeDescriptor.GetEvents(Attribute)
Note
Questo metodo fornisce un'implementazione del 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
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.