クエリ可能な監視可能シーケンスを無期限に繰り返します。
Namespace:System.Reactive.Linq
アセンブリ: System.Reactive.Providers (System.Reactive.Providers.dll)
構文
'Declaration
<ExtensionAttribute> _
Public Shared Function Repeat(Of TSource) ( _
source As IQbservable(Of TSource), _
repeatCount As Integer _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim repeatCount As Integer
Dim returnValue As IQbservable(Of TSource)
returnValue = source.Repeat(repeatCount)
public static IQbservable<TSource> Repeat<TSource>(
this IQbservable<TSource> source,
int repeatCount
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ Repeat(
IQbservable<TSource>^ source,
int repeatCount
)
static member Repeat :
source:IQbservable<'TSource> *
repeatCount:int -> IQbservable<'TSource>
JScript does not support generic types and methods.
型パラメーター
- TSource
ソースの種類。
パラメーター
- source
型: System.Reactive.Linq.IQbservable<TSource>
繰り返すクエリ可能な監視可能なシーケンス。
- repeatCount
種類: System.Int32
シーケンスを繰り返す回数。
戻り値
型: System.Reactive.Linq.IQbservable<TSource>
指定されたシーケンスの要素を繰り返し生成する、クエリ可能な監視可能なシーケンス。
使用上の注意
Visual Basic および C# では、 IQbservable<TSource> 型の任意のオブジェクトでインスタンス メソッドとしてこのメソッドを呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。