Observable.FromEventPattern Method

Include Protected Members
Include Inherited Members

Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member FromEventPattern<TEventArgs>(Action<EventHandler<TEventArgs>>, Action<EventHandler<TEventArgs>>) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence with the specified add handler and remove handler.
Public methodStatic member FromEventPattern(Action<EventHandler>, Action<EventHandler>) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence with a specified add handler and remove handler.
Public methodStatic member FromEventPattern<TDelegate, TEventArgs>(Action<TDelegate>, Action<TDelegate>) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence with the specified add handler and remove handler.
Public methodStatic member FromEventPattern(Object, String) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence, using reflection to find an instance event.
Public methodStatic member FromEventPattern<TEventArgs>(Object, String) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence, using reflection to find an instance event.
Public methodStatic member FromEventPattern(Type, String) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence, using reflection to find a static event.
Public methodStatic member FromEventPattern<TEventArgs>(Type, String) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence, using reflection to find a static event.
Public methodStatic member FromEventPattern<TDelegate, TEventArgs>(Func<EventHandler<TEventArgs>, TDelegate>, Action<TDelegate>, Action<TDelegate>) Converts a .NET event, conforming to the standard .NET event pattern, to an observable sequence with the specified conversion, add handler and remove handler.

Top

See Also

Reference

Observable Class

System.Reactive.Linq Namespace