C# Класс SonarLint.VisualStudio.Progress.MVVM.RelayCommand

A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is 'true'.
Наследование: ICommand
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Execute ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void
RelayCommand ( System.Action execute ) : System

Creates a new command that can always execute.

RelayCommand ( Action execute ) : System

Creates a new command that can always execute.

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command.

Приватные методы

Метод Описание
CanExecute ( object parameter ) : bool

Описание методов

Execute() публичный Метод

public Execute ( object parameter ) : void
parameter object
Результат void

RaiseCanExecuteChanged() публичный Метод

public RaiseCanExecuteChanged ( ) : void
Результат void

RelayCommand() публичный Метод

Creates a new command that can always execute.
public RelayCommand ( System.Action execute ) : System
execute System.Action The execution logic.
Результат System

RelayCommand() публичный Метод

Creates a new command that can always execute.
public RelayCommand ( Action execute ) : System
execute Action The execution logic.
Результат System

RelayCommand() публичный Метод

Creates a new command.
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execution logic.
canExecute Predicate The execution status logic.
Результат System