Edit

Share via


IRelayCommand<T>.CanExecute(T) Method

Definition

Provides a strongly-typed variant of CanExecute(Object).

public bool CanExecute (T? parameter);
abstract member CanExecute : 'T -> bool
Public Function CanExecute (parameter As T) As Boolean

Parameters

parameter
T

The input parameter.

Returns

Whether or not the current command can be executed.

Remarks

Use this overload to avoid boxing, if T is a value type.

Applies to