Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EventHandlerList.Item Property (Object)


Gets or sets the delegate for the specified object.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public Delegate this[
	object key
] { get; set; }


Type: System.Object

An object to find in the list.

Property Value

Type: System.Delegate

The delegate for the specified key, or null if a delegate does not exist.

When the key is not found in the list and you provide a delegate to set the value of the key, then the key is added to the top of the list and assigned to the delegate as its value.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft