EventHandlerList.Item Property (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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