[Home] Type Microsoft.FSharp.Control.IDelegateEvent


.NET events are revealed to F# code as instances of the type IDelegateEvent, which is a subtype of the type [IEvent]. The delegate type parameter and arguments are determined by the F# type checker based on information stored for the .NET event. F# code may also declare .NET events over any .NET delegate type. For example, DelegateEvent<PaintEventHandler,PaintEventArgs> can be used for an event whose callbacks are of type PaintEventHandler. The delegate and argument types must match.

Full Type Signature

type IDelegateEvent<'del,'args> = interface
                                    inherit IPrimitiveDelegateEvent<'del>
                                    inherit IEvent<'args>
                                  end

See Also

Microsoft.FSharp.Control


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19