Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IRelayCommand<T> Interface

Definition

Namespace:
Microsoft.Toolkit.Mvvm.Input
Assembly:
Microsoft.Toolkit.Mvvm.dll
Package:
Microsoft.Toolkit.Mvvm v7.0.2
Package:
Microsoft.Toolkit.Mvvm v7.1.2

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

A generic interface representing a more specific version of IRelayCommand.

public interface IRelayCommand<in T> : Microsoft.Toolkit.Mvvm.Input.IRelayCommand, System.Windows.Input.ICommand
type IRelayCommand<'T> = interface
 interface IRelayCommand
 interface ICommand
Public Interface IRelayCommand(Of In T)
Implements ICommand, IRelayCommand

Type Parameters

T

The type used as argument for the interface methods.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived
Implements

Methods

CanExecute(T)

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

Execute(T)

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

NotifyCanExecuteChanged()

Notifies that the CanExecute(Object) property has changed.

(Inherited from IRelayCommand)

Applies to