Export (0) Print
Expand All

IObservable.Add<'T> Extension Method (F#)

Permanently connects a listener function to the observable. The listener will be invoked for each observation.

Namespace/Module Path: Microsoft.FSharp.Control.CommonExtensions

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

// Signature:
type System.IObservable with
  member Add : ('T -> unit) -> unit

// Usage:
iObservable.Add (callback)


Type: 'T -> unit

The function to be called for each observation.

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

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

F# Runtime

Supported in: 2.0


Supported in: 3

Community Additions

© 2014 Microsoft