產生可查詢的可觀察序列,這個序列會重複指定的專案指定次數。
Namespace:System.Reactive.Linq
裝配: System.Reactive.Providers.dll) 中的 System.Reactive.Providers (
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Repeat(Of TResult) ( _
provider As IQbservableProvider, _
value As TResult, _
repeatCount As Integer _
) As IQbservable(Of TResult)
'Usage
Dim provider As IQbservableProvider
Dim value As TResult
Dim repeatCount As Integer
Dim returnValue As IQbservable(Of TResult)
returnValue = provider.Repeat(value, _
repeatCount)
public static IQbservable<TResult> Repeat<TResult>(
this IQbservableProvider provider,
TResult value,
int repeatCount
)
[ExtensionAttribute]
public:
generic<typename TResult>
static IQbservable<TResult>^ Repeat(
IQbservableProvider^ provider,
TResult value,
int repeatCount
)
static member Repeat :
provider:IQbservableProvider *
value:'TResult *
repeatCount:int -> IQbservable<'TResult>
JScript does not support generic types and methods.
類型參數
- TResult
結果的類型。
參數
- provider
類型: System.Reactive.Linq.IQbservableProvider
本機 Qbservable 提供者。
- value
類型:TResult
要重複的專案。
- repeatCount
類型: System.Int32
重複專案的次數。
傳回值
類型:System.Reactive.Linq.IQbservable< TResult>
可查詢的可觀察序列,會重複指定專案的指定次數。
使用注意事項
在 Visual Basic 和 C# 中,您可以在 IQbservableProvider類型的任何物件上呼叫這個方法作為實例方法。 使用執行個體方法語法呼叫這個方法時,請省略第一個參數。 如需詳細資訊,請參閱 或 。