Control.Event<'T> Class (F#)

Event implementations for the IEvent type.

Namespace/Module Path: Microsoft.FSharp.Control

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

type Event<'T> =
 class
  new Event : unit -> Event<'T>
  member this.Trigger : 'T -> unit
  member this.Publish :  IEvent<'T>
 end

Remarks

Functions that work with events are defined in the Event module.

This type is named FSharpEvent in compiled assemblies. If you are accessing the type from a language other than F#, or through reflection, use this name.

Constructors

Member

Description

new

Creates an observable object.

Instance Members

Member

Description

Publish

Publishes an observation as a first class value.

Trigger

Triggers an observation using the given parameters.

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

Reference

Microsoft.FSharp.Control Namespace (F#)

Control.IEvent<'T> Type Abbreviation (F#)

Control.IEvent<'Delegate,'Args> Interface (F#)