Bagikan melalui


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