This topic has not yet been rated - Rate this topic

TypeDescriptor.CreateEvent Method (Type, EventDescriptor, Attribute[])

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)

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.

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.