共用方式為


Observable.Do 方法

包括受保護的成員
加入繼承的成員

針對可觀察序列中的每個專案叫用動作。

這個成員是多載的。 如需這個成員的完整資訊,包含語法、使用方式和範例,請按一下多載清單中的名稱。

多載清單

  名稱 描述
Do < TSource (IObservable < TSource > , Action < TSource >>) 針對可觀察序列中的每個專案叫用動作。
Do < TSource (IObservable < TSource > , IObserver < TSource >>) 針對可觀察序列中的每個專案叫用動作,並在可觀察序列的例外終止時叫用動作。
Do < TSource (IObservable < TSource > , Action TSource >> , Action <) 針對可觀察序列中的每個專案叫用動作,並在可觀察序列的正常終止時叫用動作。
Do < TSource (IObservable < TSource, Action TSource >>> , Action << Exception) > 針對可觀察序列中的每個專案叫用動作,並在可觀察序列的例外終止時叫用動作。
Do < TSource (IObservable < TSource, Action TSource >>> , Action < Exception > , Action) < 針對可觀察序列中的每個專案叫用動作,並在可觀察序列的正常或例外終止時叫用動作。

頂端

另請參閱

參考

Observable 類別

System.Reactive.Linq 命名空間