Condividi tramite


Interfaccia System.IObserver<'T> (F#)

Client che può essere sottoscritto per osservare i risultati di un oggetto IObservable.

Percorso spazio dei nomi/modulo: System

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

[<AllowNullLiteral>]
type IObserver<'T> =
 interface
  abstract this.OnCompleted : unit -> unit
  abstract this.OnError : exn -> unit
  abstract this.OnNext : 'T -> unit
 end

Note

Questo tipo viene fornito per l'utilizzo esclusivo con F# Runtime destinato a .NET Framework 2.0. Se si utilizza .NET Framework 4, utilizzare il tipo .NET Framework 4 con lo stesso nome, IObserver<T>.

Membri di istanza

Membro

Oggetto di descrizione

OnCompleted

Notifica a un osservatore che non sarà più prodotto alcun risultato.

OnError

Notifica a un osservatore un errore.

OnNext

Notifica a un osservatore un nuovo risultato.

Piattaforme

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

Informazioni sulla versione

F# Runtime

Supportato in: 2.0

Silverlight

Supportato in: 3

Vedere anche

Riferimenti

Spazio dei nomi System (F#)