Observable.GenerateWithTime<TState, TResult> 方法 (TState, Func<TState, Boolean>, Func<TState, TResult>, Func<TState, TimeSpan>, Func<TState, TState>)
命名空间: Microsoft.Phone.Reactive
程序集: Microsoft.Phone.Reactive(在 Microsoft.Phone.Reactive.dll 中)
语法
声明
Public Shared Function GenerateWithTime(Of TState, TResult) ( _
initialState As TState, _
condition As Func(Of TState, Boolean), _
resultSelector As Func(Of TState, TResult), _
timeSelector As Func(Of TState, TimeSpan), _
iterate As Func(Of TState, TState) _
) As IObservable(Of TResult)
public static IObservable<TResult> GenerateWithTime<TState, TResult>(
TState initialState,
Func<TState, bool> condition,
Func<TState, TResult> resultSelector,
Func<TState, TimeSpan> timeSelector,
Func<TState, TState> iterate
)
public:
generic<typename TState, typename TResult>
static IObservable<TResult>^ GenerateWithTime(
TState initialState,
Func<TState, bool>^ condition,
Func<TState, TResult>^ resultSelector,
Func<TState, TimeSpan>^ timeSelector,
Func<TState, TState>^ iterate
)
static member GenerateWithTime :
initialState:'TState *
condition:Func<'TState, bool> *
resultSelector:Func<'TState, 'TResult> *
timeSelector:Func<'TState, TimeSpan> *
iterate:Func<'TState, 'TState> -> IObservable<'TResult>
类型参数
- TState
- TResult
参数
- initialState
类型:TState
- condition
类型:System.Func<TState, Boolean>
- resultSelector
类型:System.Func<TState, TResult>
- timeSelector
类型:System.Func<TState, TimeSpan>
- iterate
类型:System.Func<TState, TState>
返回值
类型:System.IObservable<TResult>
版本信息
适用于 Windows Phone 应用的 .NET
受以下版本支持:Windows Phone 8、Silverlight 8.1
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。