,System.Windows.Input.ICommand)} ,ReactiveUI.Reactive.ReactiveCommandBase{--0,--1})} ,--1,System.Linq.Expressions.Expression{System.Func{--1,System.Windows.Input.ICommand}})} ,--2,System.Linq.Expressions.Expression{System.Func{--2,ReactiveUI.Reactive.ReactiveCommandBase{--0,--1}}})}
ReactiveCommandMixins.InvokeCommand(IObservable, ICommand?) method¶
Defined in
Type: ReactiveCommandMixins
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 static IDisposable InvokeCommand<T>(this IObservable<T> item, ICommand? command) - 2.
public static IDisposable InvokeCommand<T, TResult>(this IObservable<T> item, ReactiveCommandBase<T, TResult>? command) - 3.
public static IDisposable InvokeCommand<T, TTarget>(this IObservable<T> item, TTarget? target, Expression<Func<TTarget, ICommand?>> commandProperty) where T : notnull where TTarget : class - 4.
public static IDisposable InvokeCommand<T, TResult, TTarget>(this IObservable<T> item, TTarget? target, Expression<Func<TTarget, ReactiveCommandBase<T, TResult>?>> commandProperty) where TTarget : class?
1. Overload¶
public static IDisposable InvokeCommand<T>(this IObservable<T> item, ICommand? command)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
item | IObservable | -- |
command | ICommand? | -- |
Returns: IDisposable
2. Overload¶
public static IDisposable InvokeCommand<T, TResult>(this IObservable<T> item, ReactiveCommandBase<T, TResult>? command)
Type parameters
| Name | Description |
|---|---|
T | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
item | IObservable | -- |
command | [ReactiveCommandBase | -- |
Returns: IDisposable
3. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")]
public static IDisposable InvokeCommand<T, TTarget>(this IObservable<T> item, TTarget? target, Expression<Func<TTarget, ICommand?>> commandProperty) where T : notnull where TTarget : class
Type parameters
| Name | Description |
|---|---|
T | -- |
TTarget | -- |
Parameters
| Name | Type | Description |
|---|---|---|
item | IObservable | -- |
target | TTarget? | -- |
commandProperty | Expression | -- |
Returns: IDisposable
4. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")]
public static IDisposable InvokeCommand<T, TResult, TTarget>(this IObservable<T> item, TTarget? target, Expression<Func<TTarget, ReactiveCommandBase<T, TResult>?>> commandProperty) where TTarget : class?
Type parameters
| Name | Description |
|---|---|
T | -- |
TResult | -- |
TTarget | -- |
Parameters
| Name | Type | Description |
|---|---|---|
item | IObservable | -- |
target | TTarget? | -- |
commandProperty | Expression | -- |
Returns: IDisposable