다음을 통해 공유


Qbservable.StartWith<TSource> 메서드(IQbservable<TSource>, IScheduler, TSource[])

지정된 원본, 스케줄러 및 값을 사용하여 쿼리 가능한 관찰 가능한 시퀀스에 값 시퀀스를 앞에 추가합니다.

네임스페이스:System.Reactive.Linq
어셈블리: System.Reactive.Providers(System.Reactive.Providers.dll)

Syntax

'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
    원본의 형식입니다.

매개 변수


  • 형식: TSource[]
    지정된 시퀀스 앞에 추가할 값입니다.

반환 값

형식: System.Reactive.Linq.IQbservable<TSource>
지정된 값이 앞에 추가된 소스 시퀀스입니다.

사용 정보

Visual Basic 및 C#에서는 IQbservableTSource> 형식의 모든 개체에서 이 메서드를 instance 메서드로 호출할 수 있습니다<. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 또는 를 참조하세요.

참고 항목

참조

Qbservable 클래스

StartWith 오버로드

System.Reactive.Linq 네임스페이스