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
파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
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