CustomTypeDescriptor.GetEvents Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a collection of event descriptors for the object represented by this type descriptor.
GetEvents() |
Returns a collection of event descriptors for the object represented by this type descriptor. |
GetEvents(Attribute[]) |
Returns a filtered collection of event descriptors for the object represented by this type descriptor. |
The GetEvents method returns a collection of event descriptors for the object this type descriptor is representing. An optional attribute array may be provided to filter the collection that is returned. If no parent is provided, the method will return Empty.
- Source:
- CustomTypeDescriptor.cs
- Source:
- CustomTypeDescriptor.cs
- Source:
- CustomTypeDescriptor.cs
Returns a collection of event descriptors for the object represented by this type descriptor.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public virtual System.ComponentModel.EventDescriptorCollection GetEvents ();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents () As EventDescriptorCollection
Returns
An EventDescriptorCollection containing the event descriptors for the object represented by this type descriptor. The default is Empty.
Implements
Remarks
If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetEvents method will call the parent's corresponding method.
See also
Applies to
.NET 9 i druge verzije
Proizvod | Verzije |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- Source:
- CustomTypeDescriptor.cs
- Source:
- CustomTypeDescriptor.cs
- Source:
- CustomTypeDescriptor.cs
Returns a filtered collection of event descriptors for the object represented by this type descriptor.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[] attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[]? attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents (attributes As Attribute()) As EventDescriptorCollection
Parameters
- attributes
- Attribute[]
An array of attributes to use as a filter. This can be null
.
Returns
An EventDescriptorCollection containing the event descriptions for the object represented by this type descriptor. The default is Empty.
Implements
Remarks
You can use the attributes
parameter to filter the collection that is returned.
If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetEvents method will call the parent's corresponding method.
See also
Applies to
.NET 9 i druge verzije
Proizvod | Verzije |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: