Export (0) Print
Expand All

Observable.FromEventPattern Method (Type, String)

Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence, using reflection to find a static event.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

public static function FromEventPattern(
	type : Type, 
	eventName : String
) : IObservable<EventPattern<EventArgs>>


Type: System.Type
The type that exposes the static event to convert.
Type: System.String
The name of the event to convert.

Return Value

Type: System.IObservable(EventPattern(EventArgs))
The observable sequence that contains data representations of invocations of the underlying .NET event.
© 2015 Microsoft