Class ICommandAttribute
Attribute to mark a method as a command that will generate a RelayCommand.
Inherited Members
Namespace: Unity.AppUI.MVVM
Assembly: Unity.AppUI.MVVM.dll
Syntax
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public sealed class ICommandAttribute : Attribute
Properties
AsyncOptions
An optional parameter to specify the options for the generated AsyncRelayCommand.
Declaration
public AsyncRelayCommandOptions AsyncOptions { get; set; }
Property Value
Type | Description |
---|---|
Async |
Remarks
This is only used when the method returns a Task.
CanExecuteMethod
The name of the method that must be called to know if the command can be executed.
Declaration
public string CanExecuteMethod { get; set; }
Property Value
Type | Description |
---|---|
string |