Observable.FromEvent<TEventArgs> Method (Object, String)

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>(
	Object target,
	string eventName
)
where TEventArgs : EventArgs

Type Parameters

TEventArgs

Parameters

target
Type: System.Object
eventName
Type: System.String

Return Value

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

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: