TypeDescriptor.CreateEvent Method (Type, EventDescriptor, Attribute[])
.NET Framework 3.0
Creates a new event descriptor that is identical to an existing event descriptor, when passed the existing EventDescriptor.
Namespace: System.ComponentModel
Assembly: System (in system.dll)
Assembly: System (in system.dll)
public static EventDescriptor CreateEvent ( Type componentType, EventDescriptor oldEventDescriptor, params Attribute[] attributes )
public static EventDescriptor CreateEvent ( Type componentType, EventDescriptor oldEventDescriptor, Attribute[] attributes )
public static function CreateEvent ( componentType : Type, oldEventDescriptor : EventDescriptor, ... attributes : Attribute[] ) : EventDescriptor
Not applicable.
Parameters
- componentType
The type of the component for which to create the new event.
- oldEventDescriptor
The existing event information.
- attributes
The new attributes.
Return Value
A new EventDescriptor that has merged the specified metadata attributes with the existing metadata attributes.- ReflectionPermission Required to inspect non-public members of the component. Link demand access required for ReflectionPermissionFlag type MemberAccess.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.