,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: ObservableAsPropertyHelperReactiveUI.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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with no initial value, no deferred subscription, and no scheduler.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
2. Overload¶
public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
initialValue | T? | The initial value of the property. |
3. Overload¶
public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, T? initialValue, IScheduler? scheduler)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value and scheduler.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
initialValue | T? | 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value and deferred subscription flag.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
initialValue | T? | The initial value of the property. |
deferSubscription | bool | When 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
initialValue | T? | The initial value of the property. |
deferSubscription | bool | When 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with no changing callback, no initial value, no deferred subscription, and no scheduler.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with a specified initial value and changing callback.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | The action called before the property value changes; may be null. |
initialValue | T? | The initial value of the property. |
8. Overload¶
public ObservableAsPropertyHelper(IObservable<T?> observable, Action<T?> onChanged, Action<T?>? onChanging, T? initialValue, bool deferSubscription)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with changing callback, initial value, and deferred subscription flag.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | The action called before the property value changes; may be null. |
initialValue | T? | The initial value of the property. |
deferSubscription | bool | When 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with changing callback, initial value, deferred subscription flag, and scheduler.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | The action called before the property value changes; may be null. |
initialValue | T? | The initial value of the property. |
deferSubscription | bool | When 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with no initial value factory, no deferred subscription, and no scheduler.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | The action called before the property value changes; may be null. |
getInitialValue | Func | 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with an initial value factory and deferred subscription flag.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | The action called before the property value changes; may be null. |
getInitialValue | Func | Factory that returns the initial value; null defaults to returning default(T). |
deferSubscription | bool | When 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class with an initial value factory and deferred subscription flag.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
getInitialValue | Func | Factory that returns the initial value; null defaults to returning default(T). |
deferSubscription | bool | When 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)
Summary: Initializes a new instance of the ObservableAsPropertyHelper class.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | The observable to base the property on. |
onChanged | Action | The action called when the property value changes. |
onChanging | Action | The action called before the property value changes; may be null. |
getInitialValue | Func | Factory that returns the initial value; null defaults to returning default(T). |
deferSubscription | bool | When true, defers source subscription until the first read of Value. |
scheduler | [IScheduler?](# | The scheduler on which change notifications are delivered. |