Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Observable.FromEventPattern(Of TEventArgs) 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 Shared Function FromEventPattern(Of TEventArgs As EventArgs) ( _
	type As Type, _
	eventName As String _
) As IObservable(Of EventPattern(Of TEventArgs))
Dim type As Type
Dim eventName As String
Dim returnValue As IObservable(Of EventPattern(Of TEventArgs))

returnValue = Observable.FromEventPattern(type, _

Type Parameters


The type of event.


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(Of EventPattern(Of TEventArgs))
The observable sequence that contains data representations of invocations of the underlying .NET event.
© 2015 Microsoft