Observable

Observable.Repeat<TResult> Method (TResult, Int32, IScheduler)

Generates an observable sequence that repeats the given element of the specified number of times.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function Repeat(Of TResult) ( _
    value As TResult, _
    repeatCount As Integer, _
    scheduler As IScheduler _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim repeatCount As Integer
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Repeat(value, _
    repeatCount, scheduler)
public static IObservable<TResult> Repeat<TResult>(
    TResult value,
    int repeatCount,
    IScheduler scheduler
)
public:
generic<typename TResult>
static IObservable<TResult>^ Repeat(
    TResult value, 
    int repeatCount, 
    IScheduler^ scheduler
)
static member Repeat : 
        value:'TResult * 
        repeatCount:int * 
        scheduler:IScheduler -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

Return Value

Type: System.IObservable<TResult>
An observable sequence that repeats the given element of the specified number of times.

See Also

Reference

Observable Class

Repeat Overload

System.Reactive.Linq Namespace

Observable.Repeat<TResult> Method (TResult, Int32)

Generates an observable sequence that repeats the given element the specified number of times.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function Repeat(Of TResult) ( _
    value As TResult, _
    repeatCount As Integer _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim repeatCount As Integer
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Repeat(value, _
    repeatCount)
public static IObservable<TResult> Repeat<TResult>(
    TResult value,
    int repeatCount
)
public:
generic<typename TResult>
static IObservable<TResult>^ Repeat(
    TResult value, 
    int repeatCount
)
static member Repeat : 
        value:'TResult * 
        repeatCount:int -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

  • value
    Type: TResult
    The element to repeat.

  • repeatCount
    Type: System.Int32
    The number of times to repeat the element.

Return Value

Type: System.IObservable<TResult>
An observable sequence that repeats the given element the specified number of times.

See Also

Reference

Observable Class

Repeat Overload

System.Reactive.Linq Namespace

Observable.Repeat<TResult> Method (TResult)

Generates an observable sequence that repeats the given element infinitely.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function Repeat(Of TResult) ( _
    value As TResult _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Repeat(value)
public static IObservable<TResult> Repeat<TResult>(
    TResult value
)
public:
generic<typename TResult>
static IObservable<TResult>^ Repeat(
    TResult value
)
static member Repeat : 
        value:'TResult -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

  • value
    Type: TResult
    The element to repeat.

Return Value

Type: System.IObservable<TResult>
An observable sequence that repeats the given element infinitely.

See Also

Reference

Observable Class

Repeat Overload

System.Reactive.Linq Namespace

Observable.Repeat<TResult> Method (TResult, IScheduler)

Generates an observable sequence that repeats the given element infinitely.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function Repeat(Of TResult) ( _
    value As TResult, _
    scheduler As IScheduler _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Repeat(value, _
    scheduler)
public static IObservable<TResult> Repeat<TResult>(
    TResult value,
    IScheduler scheduler
)
public:
generic<typename TResult>
static IObservable<TResult>^ Repeat(
    TResult value, 
    IScheduler^ scheduler
)
static member Repeat : 
        value:'TResult * 
        scheduler:IScheduler -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

Return Value

Type: System.IObservable<TResult>
The observable sequence that repeats the given element infinitely.

See Also

Reference

Observable Class

Repeat Overload

System.Reactive.Linq Namespace