EventHandlerList.Item[Object] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.