DispatcherObservable.ObserveOn<TSource> – metoda (IObservable<TSource>, Dispatcher)
Obor názvů:System.Reactive.Linq
Sestavení: System.Reactive.Windows.Threading (v System.Reactive.Windows.Threading.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ObserveOn(Of TSource) ( _
source As IObservable(Of TSource), _
dispatcher As Dispatcher _
) As IObservable(Of TSource)
'Usage
Dim source As IObservable(Of TSource)
Dim dispatcher As Dispatcher
Dim returnValue As IObservable(Of TSource)
returnValue = source.ObserveOn(dispatcher)
public static IObservable<TSource> ObserveOn<TSource>(
this IObservable<TSource> source,
Dispatcher dispatcher
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IObservable<TSource>^ ObserveOn(
IObservable<TSource>^ source,
Dispatcher^ dispatcher
)
static member ObserveOn :
source:IObservable<'TSource> *
dispatcher:Dispatcher -> IObservable<'TSource>
JScript does not support generic types and methods.
Parametry typu
- Tsource
Parametry
- source
Typ: System.IObservable<TSource>
- Dispečer
Typ: System.Windows.Threading.Dispatcher
Návratová hodnota
Typ: System.IObservable<TSource>
Poznámka k využití
V jazyce Visual Basic a C# můžete tuto metodu volat jako metodu instance u libovolného objektu typu IObservable<TSource>. Pokud k volání této metody použijete syntaxi metody instance, vynechejte první parametr. Další informace naleznete v tématech a .