Export (0) Print
Expand All

Observable.FromEvent<TEventArgs> Method (Action<EventHandler<TEventArgs>>, Action<EventHandler<TEventArgs>>)

March 22, 2012

Returns an observable sequence that contains the values of the underlying .NET Framework event.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<IEvent<TEventArgs>> FromEvent<TEventArgs>(
	Action<EventHandler<TEventArgs>> addHandler,
	Action<EventHandler<TEventArgs>> removeHandler
)
where TEventArgs : EventArgs

Type Parameters

TEventArgs

Parameters

addHandler
Type: System.Action<EventHandler<TEventArgs>>
removeHandler
Type: System.Action<EventHandler<TEventArgs>>

Return Value

Type: System.IObservable<IEvent<TEventArgs>>
Returns IObservable<T>.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft