将值序列追加到具有指定源、计划程序和值的可查询可观测序列。
Namespace:System.Reactive.Linq
装配: system.Reactive.Providers 在 System.Reactive.Providers.dll) 中 (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function StartWith(Of TSource) ( _
source As IQbservable(Of TSource), _
scheduler As IScheduler, _
ParamArray values As TSource() _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim scheduler As IScheduler
Dim values As TSource()
Dim returnValue As IQbservable(Of TSource)
returnValue = source.StartWith(scheduler, _
values)
public static IQbservable<TSource> StartWith<TSource>(
this IQbservable<TSource> source,
IScheduler scheduler,
params TSource[] values
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ StartWith(
IQbservable<TSource>^ source,
IScheduler^ scheduler,
... array<TSource>^ values
)
static member StartWith :
source:IQbservable<'TSource> *
scheduler:IScheduler *
values:'TSource[] -> IQbservable<'TSource>
JScript does not support generic types and methods.
类型参数
- TSource
源的类型。
参数
- source
类型: System.Reactive.Linq.IQbservable<TSource>
要将值追加到的源序列。
- scheduler
类型: System.Reactive.Concurrency.IScheduler
要发出前面附加值的计划程序。
- 值
类型:TSource[]
要附加到指定序列前的值。
返回值
类型: System.Reactive.Linq.IQbservable<TSource>
前面附加有指定值的源序列。
使用说明
在 Visual Basic 和 C# 中,可以在 IQbservable<TSource> 类型的任何对象上调用此方法作为实例方法。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。