Método DispatcherObservable.ObserveOn<TSource> (IObservable<TSource>, Dispatcher)
Namespace:System.Reactive.Linq
Assembly: System.Reactive.Windows.Threading (em System.Reactive.Windows.Threading.dll)
Sintaxe
'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.
Parâmetros de tipo
- TSource
Parâmetros
- source
Tipo: System.IObservable<TSource>
- Dispatcher
Tipo: System.Windows.Threading.Dispatcher
Valor Retornado
Tipo: System.IObservable<TSource>
Observação de uso
No Visual Basic e no C#, você pode chamar esse método como um método de instância em qualquer objeto do tipo IObservable<TSource>. Quando você usar a sintaxe de método de instância para chamar esse método, omita o primeiro parâmetro. Para obter mais informações, consulte ou .