Qbservable

Qbservable.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

NameDescriptionPublic methodStatic memberFromEventPattern(IQbservableProvider, Expression<Action<EventHandler>>, Expression<Action<EventHandler>>)Converts a .NET event, conforming to the standard .NET event pattern, to an queryable observable sequence with the specified add handler and remove handler.Public methodStatic memberFromEventPattern(IQbservableProvider, Expression<Action>, Expression<Action>)Converts a .NET event, conforming to the standard .NET event pattern, to a queryable observable sequence with a specified add handler and remove handler.Public methodStatic memberFromEventPattern<TDelegate, TEventArgs>(IQbservableProvider, Expression<Action>, Expression<Action>)Converts a .NET event, conforming to the standard .NET event pattern, to an queryable observable sequence with the specified add handler and remove handler.Public methodStatic memberFromEventPattern(IQbservableProvider, 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 memberFromEventPattern(IQbservableProvider, Object, String)Converts a .NET event, conforming to the standard .NET event pattern, to an queryable observable sequence, using reflection to find an instance event.Public methodStatic memberFromEventPattern(IQbservableProvider, Type, String)Converts a .NET event, conforming to the standard .NET event pattern, to a queryable observable sequence, using reflection to find a static event.Public methodStatic memberFromEventPattern(IQbservableProvider, Type, String)Converts a .NET event, conforming to the standard .NET event pattern, to an queryable observable sequence, using reflection to find a static event.Public methodStatic memberFromEventPattern<TDelegate, TEventArgs>(IQbservableProvider, Expression<Func<EventHandler, TDelegate>>, Expression<Action>, Expression<Action>)Converts a .NET event, conforming to the standard .NET event pattern, to an queryable observable sequence with the specified conversion, add handler and remove handler.Top

See Also

Reference

Qbservable Class

System.Reactive.Linq Namespace

Qbservable.FromEventPattern Method (IQbservableProvider, Expression<Action<EventHandler>>, Expression<Action<EventHandler>>)

Converts a .NET event, conforming to the standard .NET event pattern, to a queryable observable sequence with a specified add handler and remove handler.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FromEventPattern ( _
    provider As IQbservableProvider, _
    addHandler As Expression(Of Action(Of EventHandler)), _
    removeHandler As Expression(Of Action(Of EventHandler)) _
) As IQbservable(Of EventPattern(Of EventArgs))
'Usage
Dim provider As IQbservableProvider
Dim addHandler As Expression(Of Action(Of EventHandler))
Dim removeHandler As Expression(Of Action(Of EventHandler))
Dim returnValue As IQbservable(Of EventPattern(Of EventArgs))

returnValue = provider.FromEventPattern(addHandler, _
    removeHandler)
public static IQbservable<EventPattern<EventArgs>> FromEventPattern(
    this IQbservableProvider provider,
    Expression<Action<EventHandler>> addHandler,
    Expression<Action<EventHandler>> removeHandler
)
[ExtensionAttribute]
public:
static IQbservable<EventPattern<EventArgs^>^>^ FromEventPattern(
    IQbservableProvider^ provider, 
    Expression<Action<EventHandler^>^>^ addHandler, 
    Expression<Action<EventHandler^>^>^ removeHandler
)
static member FromEventPattern : 
        provider:IQbservableProvider * 
        addHandler:Expression<Action<EventHandler>> * 
        removeHandler:Expression<Action<EventHandler>> -> IQbservable<EventPattern<EventArgs>> 
public static function FromEventPattern(
    provider : IQbservableProvider, 
    addHandler : Expression<Action<EventHandler>>, 
    removeHandler : Expression<Action<EventHandler>>
) : IQbservable<EventPattern<EventArgs>>

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<EventPattern<EventArgs>>
The queryable observable sequence that contains data representations of invocations of the underlying .NET event.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

FromEventPattern Overload

System.Reactive.Linq Namespace

Qbservable.FromEventPattern Method (IQbservableProvider, Type, String)

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

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FromEventPattern ( _
    provider As IQbservableProvider, _
    type As Type, _
    eventName As String _
) As IQbservable(Of EventPattern(Of EventArgs))
'Usage
Dim provider As IQbservableProvider
Dim type As Type
Dim eventName As String
Dim returnValue As IQbservable(Of EventPattern(Of EventArgs))

returnValue = provider.FromEventPattern(type, _
    eventName)
public static IQbservable<EventPattern<EventArgs>> FromEventPattern(
    this IQbservableProvider provider,
    Type type,
    string eventName
)
[ExtensionAttribute]
public:
static IQbservable<EventPattern<EventArgs^>^>^ FromEventPattern(
    IQbservableProvider^ provider, 
    Type^ type, 
    String^ eventName
)
static member FromEventPattern : 
        provider:IQbservableProvider * 
        type:Type * 
        eventName:string -> IQbservable<EventPattern<EventArgs>> 
public static function FromEventPattern(
    provider : IQbservableProvider, 
    type : Type, 
    eventName : String
) : IQbservable<EventPattern<EventArgs>>

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<EventPattern<EventArgs>>
The queryable observable sequence that contains data representations of invocations of the underlying .NET event.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

FromEventPattern Overload

System.Reactive.Linq Namespace

Qbservable.FromEventPattern Method (IQbservableProvider, Object, String)

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

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FromEventPattern ( _
    provider As IQbservableProvider, _
    target As Object, _
    eventName As String _
) As IQbservable(Of EventPattern(Of EventArgs))
'Usage
Dim provider As IQbservableProvider
Dim target As Object
Dim eventName As String
Dim returnValue As IQbservable(Of EventPattern(Of EventArgs))

returnValue = provider.FromEventPattern(target, _
    eventName)
public static IQbservable<EventPattern<EventArgs>> FromEventPattern(
    this IQbservableProvider provider,
    Object target,
    string eventName
)
[ExtensionAttribute]
public:
static IQbservable<EventPattern<EventArgs^>^>^ FromEventPattern(
    IQbservableProvider^ provider, 
    Object^ target, 
    String^ eventName
)
static member FromEventPattern : 
        provider:IQbservableProvider * 
        target:Object * 
        eventName:string -> IQbservable<EventPattern<EventArgs>> 
public static function FromEventPattern(
    provider : IQbservableProvider, 
    target : Object, 
    eventName : String
) : IQbservable<EventPattern<EventArgs>>

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<EventPattern<EventArgs>>
The queryable observable sequence that contains data representations of invocations of the underlying .NET event.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

FromEventPattern Overload

System.Reactive.Linq Namespace