Skip to content

,System.Action{-0})} ,System.Action{-0},-0)} ,System.Action{-0},-0,System.Reactive.Concurrency.IScheduler)} ,System.Action{-0},-0,System.Boolean)} ,System.Action{-0},-0,System.Boolean,System.Reactive.Concurrency.IScheduler)} ,System.Action{-0},System.Action{-0})} ,System.Action{-0},System.Action{-0},-0)} ,System.Action{-0},System.Action{-0},-0,System.Boolean)} ,System.Action{-0},System.Action{-0},-0,System.Boolean,System.Reactive.Concurrency.IScheduler)} ,System.Action{-0},System.Action{-0},System.Func{-0})} ,System.Action{-0},System.Action{-0},System.Func{-0},System.Boolean)} ,System.Action{-0},System.Func{-0},System.Boolean)} ,System.Action{-0},System.Action{-0},System.Func{-0},System.Boolean,System.Reactive.Concurrency.IScheduler)}

ObservableAsPropertyHelper(IObservable, Action) constructor

Defined in

Type: ObservableAsPropertyHelper Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.5, netstandard2.1, net481, net462, net471

Overloads

  • 1. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged)
  • 2. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue)
  • 3. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, IScheduler? scheduler)
  • 4. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, bool deferSubscription)
  • 5. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, bool deferSubscription, IScheduler? scheduler)
  • 6. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging)
  • 7. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue)
  • 8. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue, bool deferSubscription)
  • 9. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue, bool deferSubscription, IScheduler? scheduler)
  • 10. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, Func<T?>? getInitialValue)
  • 11. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, Func<T?>? getInitialValue, bool deferSubscription)
  • 12. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Func<T?> getInitialValue, bool deferSubscription)
  • 13. public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, Func<T?>? getInitialValue, bool deferSubscription, IScheduler? scheduler)

1. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with no initial value, no deferred subscription, and no scheduler.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.

2. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
initialValueT?The initial value of the property.

3. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, IScheduler? scheduler)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value and scheduler.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
initialValueT?The initial value of the property.
scheduler[IScheduler?](#The scheduler on which change notifications are delivered.

4. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, bool deferSubscription)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value and deferred subscription flag.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
initialValueT?The initial value of the property.
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.

5. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, bool deferSubscription, IScheduler? scheduler)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
initialValueT?The initial value of the property.
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.
scheduler[IScheduler?](#The scheduler on which change notifications are delivered.

6. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with no changing callback, no initial value, no deferred subscription, and no scheduler.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.

7. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value and changing callback.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.
initialValueT?The initial value of the property.

8. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue, bool deferSubscription)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with changing callback, initial value, and deferred subscription flag.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.
initialValueT?The initial value of the property.
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.

9. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue, bool deferSubscription, IScheduler? scheduler)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with changing callback, initial value, deferred subscription flag, and scheduler.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.
initialValueT?The initial value of the property.
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.
scheduler[IScheduler?](#The scheduler on which change notifications are delivered.

10. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, Func<T?>? getInitialValue)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with no initial value factory, no deferred subscription, and no scheduler.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.
getInitialValueFunc?Factory that returns the initial value; null defaults to returning default(T).

11. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, Func<T?>? getInitialValue, bool deferSubscription)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with an initial value factory and deferred subscription flag.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.
getInitialValueFunc?Factory that returns the initial value; null defaults to returning default(T).
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.

12. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Func<T?> getInitialValue, bool deferSubscription)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class with an initial value factory and deferred subscription flag.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
getInitialValueFuncFactory that returns the initial value; null defaults to returning default(T).
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.

13. Overload

public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, Func<T?>? getInitialValue, bool deferSubscription, IScheduler? scheduler)

View source

Summary: Initializes a new instance of the ObservableAsPropertyHelper class.

Parameters

NameTypeDescription
observableIObservableThe observable to base the property on.
onChangedActionThe action called when the property value changes.
onChangingAction?The action called before the property value changes; may be null.
getInitialValueFunc?Factory that returns the initial value; null defaults to returning default(T).
deferSubscriptionboolWhen true, defers source subscription until the first read of Value.
scheduler[IScheduler?](#The scheduler on which change notifications are delivered.