Observable.Generate<TState, TResult> Yöntem (TState, Func<TState, Boolean>, Func<TState, TResult>, Func<TState, TState>)
Ad alanı: Microsoft.Phone.Reactive
Derleme: Microsoft.Phone.Reactive (Microsoft.Phone.Reactive.dll içinde)
Sözdizimi
'Bildirim
Public Shared Function Generate(Of TState, TResult) ( _
initialState As TState, _
condition As Func(Of TState, Boolean), _
resultSelector As Func(Of TState, TResult), _
iterate As Func(Of TState, TState) _
) As IObservable(Of TResult)
public static IObservable<TResult> Generate<TState, TResult>(
TState initialState,
Func<TState, bool> condition,
Func<TState, TResult> resultSelector,
Func<TState, TState> iterate
)
public:
generic<typename TState, typename TResult>
static IObservable<TResult>^ Generate(
TState initialState,
Func<TState, bool>^ condition,
Func<TState, TResult>^ resultSelector,
Func<TState, TState>^ iterate
)
static member Generate :
initialState:'TState *
condition:Func<'TState, bool> *
resultSelector:Func<'TState, 'TResult> *
iterate:Func<'TState, 'TState> -> IObservable<'TResult>
Tür Parametreleri
- TState
- TResult
Parametreler
- initialState
Tür: TState
- condition
Tür: System.Func<TState, Boolean>
- resultSelector
Tür: System.Func<TState, TResult>
- iterate
Tür: System.Func<TState, TState>
Dönüş Değeri
Tür: System.IObservable<TResult>
Sürüm Bilgileri
Windows Phone uygulamaları için .NET
Destekleyen: Windows Phone 8, Silverlight 8.1
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.