Share via


Observable.FromEvent<TEventArgs> Method (Object, String)

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

Syntax

'Declaration
Public Shared Function FromEvent(Of TEventArgs As EventArgs) ( _
    target As Object, _
    eventName As String _
) As IObservable(Of IEvent(Of TEventArgs))
public static IObservable<IEvent<TEventArgs>> FromEvent<TEventArgs>(
    Object target,
    string eventName
)
where TEventArgs : EventArgs
public:
generic<typename TEventArgs>
where TEventArgs : EventArgs 
static IObservable<IEvent<TEventArgs>^>^ FromEvent(
    Object^ target, 
    String^ eventName
)
static member FromEvent : 
        target:Object * 
        eventName:string -> IObservable<IEvent<'TEventArgs>>  when 'TEventArgs : EventArgs

Type Parameters

  • TEventArgs

Parameters

Return Value

Type: System.IObservable<IEvent<TEventArgs>>

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Silverlight 8.1

.NET Framework Security

See Also

Reference

Observable Class

FromEvent Overload

Microsoft.Phone.Reactive Namespace