AsyncEnumerable.Repeat<TResult>(TResult, Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
1 つの繰り返し値を含むシーケンスを生成します。
public:
generic <typename TResult>
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Repeat(TResult element, int count);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Repeat<TResult>(TResult element, int count);
static member Repeat : 'Result * int -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function Repeat(Of TResult) (element As TResult, count As Integer) As IAsyncEnumerable(Of TResult)
型パラメーター
- TResult
結果シーケンスで繰り返される値の型。
パラメーター
- element
- TResult
繰り返される値。
- count
- Int32
生成されたシーケンス内の値を繰り返す回数。
返品
IAsyncEnumerable<TResult>
繰り返し値を含む IAsyncEnumerable<T> 。
例外
count が 0 未満です。