フィルター属性として指定の配列を使用してコンポーネントのインスタンスのイベントを取得します。
名前空間: Microsoft.VisualStudio.Data
アセンブリ: Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.dll 内)
構文
'宣言
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 では、明示的なインターフェイスの実装はサポートされません。
パラメーター
- attributes
型 : array<System.Attribute[]
フィルターとして使用される型の配列 Attribute
戻り値
型 : System.ComponentModel.EventDescriptorCollection
指定した構成のインスタンスのフィルター処理 EventDescriptorCollection イベントを表すを返します。
実装
ICustomTypeDescriptor.GetEvents(array<Attribute[])
解説
このメソッドは GetEvents のメソッドの実装を提供します。詳細については、.NET Framework のクラス ライブラリ GetEvents(System.Attribute[]) のメソッドを参照してください。
attributes 配列に Attribute が指定され、イベントにその属性に対応するクラス インスタンスがないときに、Attribute が既定のイベントである場合、返される配列にはそのイベントが含まれます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。