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
- target
Type: System.Object
- eventName
Type: System.String
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.