Observable.GenerateWithTime<TState, TResult> Method (TState, Func<TState, Boolean>, Func<TState, TResult>, Func<TState, DateTimeOffset>, Func<TState, TState>, IScheduler)
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Syntax
'Declaration
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, DateTimeOffset), _
iterate As Func(Of TState, TState), _
scheduler As IScheduler _
) As IObservable(Of TResult)
public static IObservable<TResult> GenerateWithTime<TState, TResult>(
TState initialState,
Func<TState, bool> condition,
Func<TState, TResult> resultSelector,
Func<TState, DateTimeOffset> timeSelector,
Func<TState, TState> iterate,
IScheduler scheduler
)
public:
generic<typename TState, typename TResult>
static IObservable<TResult>^ GenerateWithTime(
TState initialState,
Func<TState, bool>^ condition,
Func<TState, TResult>^ resultSelector,
Func<TState, DateTimeOffset>^ timeSelector,
Func<TState, TState>^ iterate,
IScheduler^ scheduler
)
static member GenerateWithTime :
initialState:'TState *
condition:Func<'TState, bool> *
resultSelector:Func<'TState, 'TResult> *
timeSelector:Func<'TState, DateTimeOffset> *
iterate:Func<'TState, 'TState> *
scheduler:IScheduler -> IObservable<'TResult>
Type Parameters
- TState
- TResult
Parameters
- initialState
Type: TState
- condition
Type: System.Func<TState, Boolean>
- resultSelector
Type: System.Func<TState, TResult>
- timeSelector
Type: System.Func<TState, DateTimeOffset>
- iterate
Type: System.Func<TState, TState>
- scheduler
Type: Microsoft.Phone.Reactive.IScheduler
Return Value
Type: System.IObservable<TResult>
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.