Edit

Share via


RelayCommand<T>.CanExecute Method

Definition

Overloads

CanExecute(Object)
CanExecute(T)

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

CanExecute(Object)

Source:
RelayCommand%7BT%7D.cs
Source:
RelayCommand%7BT%7D.cs

Determines whether the command can execute in its current state.

public bool CanExecute(object? parameter);
abstract member CanExecute : obj -> bool
override this.CanExecute : obj -> bool
Public Function CanExecute (parameter As Object) As Boolean

Parameters

parameter
Object

Returns

Implements

Applies to

CanExecute(T)

Source:
RelayCommand%7BT%7D.cs
Source:
RelayCommand%7BT%7D.cs

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

public bool CanExecute(T? parameter);
abstract member CanExecute : 'T -> bool
override this.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.

Implements

Applies to