TypeDescriptor::CreateEvent Method (Type^, EventDescriptor^, array<Attribute^>^)
Creates a new event descriptor that is identical to an existing event descriptor, when passed the existing EventDescriptor.
Assembly: System (in System.dll)
public: [ReflectionPermissionAttribute(SecurityAction::LinkDemand, Flags = ReflectionPermissionFlag::MemberAccess)] static EventDescriptor^ CreateEvent( Type^ componentType, EventDescriptor^ oldEventDescriptor, ... array<Attribute^>^ attributes )
Parameters
- componentType
-
Type:
System::Type^
The type of the component for which to create the new event.
- oldEventDescriptor
-
Type:
System.ComponentModel::EventDescriptor^
The existing event information.
- attributes
-
Type:
array<System::Attribute^>^
The new attributes.
Return Value
Type: System.ComponentModel::EventDescriptor^A new EventDescriptor that has merged the specified metadata attributes with the existing metadata attributes.
Required to inspect non-public members of the component. Link demand access required for ReflectionPermissionFlag type MemberAccess.
Available since 1.1