Επεξεργασία

Κοινή χρήση μέσω


EventHandlerList.Item[Object] Property

Definition

Gets or sets the delegate for the specified object.

public:
 property Delegate ^ default[System::Object ^] { Delegate ^ get(System::Object ^ key); void set(System::Object ^ key, Delegate ^ value); };
public Delegate? this[object key] { get; set; }
public Delegate this[object key] { get; set; }
member this.Item(obj) : Delegate with get, set
Default Public Property Item(key As Object) As Delegate

Parameters

key
Object

An object to find in the list.

Property Value

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

Remarks

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.

Applies to

See also