Export (0) Print
Expand All

Observable.FromEventPattern Method (Object, String)

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

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

public static IObservable<EventPattern<EventArgs>> FromEventPattern(
	Object target,
	string eventName
)

Parameters

target
Type: System.Object
The object instance that exposes the event to convert.
eventName
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.
Show:
© 2014 Microsoft