Table of contents
TOC
Collapse the table of content
Expand the table of content

Control.IDelegateEvent<'Delegate> Interface (F#)

Den Delimarsky|Last Updated: 7/1/2016
|
1 Contributor

First class event values for arbitrary delegate types.

Namespace/Module Path: Microsoft.FSharp.Control

Assembly: FSharp.Core (in FSharp.Core.dll)

Syntax

type IDelegateEvent<'Delegate> =
interface
abstract this.AddHandler : 'Delegate -> unit
abstract this.RemoveHandler : 'Delegate -> unit
end

Remarks

F# gives special status to member properties compatible with type IDelegateEvent and tagged with the CLIEventAttribute. In this case the F# compiler generates approriate CLI metadata to make the member appear to other CLI languages as a CLI event.

Instance Members

MemberDescription
AddHandlerConnect a handler delegate object to the event. A handler can be later removed using RemoveHandler. The listener will be invoked when the event is fired.
RemoveHandlerRemove a listener delegate from an event listener store.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Microsoft.FSharp.Control Namespace (F#)

DelegateEvent

© 2016 Microsoft