Edit

Share via


RelayCommandAttribute.CanExecute Property

Definition

Gets or sets the name of the property or method that will be invoked to check whether the generated command can be executed at any given time. The referenced member needs to return a Boolean value, and has to have a signature compatible with the target command.

public string? CanExecute { get; init; }
member this.CanExecute : string with get, set
Public Property CanExecute As String

Property Value

Applies to