C# 클래스 Microsoft.Sarif.Viewer.DelegateCommandBase

An ICommand whose delegates can be attached for Execute and CanExecute.
상속: ICommand
파일 보기 프로젝트 열기: Microsoft/sarif-sdk

보호된 프로퍼티들

프로퍼티 타입 설명
_canExecuteMethod bool>.Func
_executeMethod Task>.Func

보호된 메소드들

메소드 설명
CanExecute ( object parameter ) : bool

Determines if the command can execute with the provided parameter by invoking the Func{Object,Bool} supplied during construction.

DelegateCommandBase ( Action executeMethod, bool>.Func canExecuteMethod ) : System

Creates a new instance of a DelegateCommandBase, specifying both the execute action and the can execute function.

DelegateCommandBase ( Task>.Func executeMethod, bool>.Func canExecuteMethod ) : System

Creates a new instance of a DelegateCommandBase, specifying both the Execute action as an awaitable Task and the CanExecute function.

Execute ( object parameter ) : System.Threading.Tasks.Task

Executes the command with the provided parameter by invoking the Action{Object} supplied during construction.

OnCanExecuteChanged ( ) : void

Raises ICommand.CanExecuteChanged on the UI thread so every command invoker can requery ICommand.CanExecute.

비공개 메소드들

메소드 설명
ICommand ( object parameter ) : bool
ICommand ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void

메소드 상세

CanExecute() 보호된 메소드

Determines if the command can execute with the provided parameter by invoking the Func{Object,Bool} supplied during construction.
protected CanExecute ( object parameter ) : bool
parameter object The parameter to use when determining if this command can execute.
리턴 bool

DelegateCommandBase() 보호된 메소드

Creates a new instance of a DelegateCommandBase, specifying both the execute action and the can execute function.
protected DelegateCommandBase ( Action executeMethod, bool>.Func canExecuteMethod ) : System
executeMethod Action The to execute when is invoked.
canExecuteMethod bool>.Func The to invoked when is invoked.
리턴 System

DelegateCommandBase() 보호된 메소드

Creates a new instance of a DelegateCommandBase, specifying both the Execute action as an awaitable Task and the CanExecute function.
protected DelegateCommandBase ( Task>.Func executeMethod, bool>.Func canExecuteMethod ) : System
executeMethod Task>.Func The to execute when is invoked.
canExecuteMethod bool>.Func The to invoked when is invoked.
리턴 System

Execute() 보호된 메소드

Executes the command with the provided parameter by invoking the Action{Object} supplied during construction.
protected Execute ( object parameter ) : System.Threading.Tasks.Task
parameter object
리턴 System.Threading.Tasks.Task

OnCanExecuteChanged() 보호된 메소드

Raises ICommand.CanExecuteChanged on the UI thread so every command invoker can requery ICommand.CanExecute.
protected OnCanExecuteChanged ( ) : void
리턴 void

프로퍼티 상세

_canExecuteMethod 보호되어 있는 프로퍼티

protected Func _canExecuteMethod
리턴 bool>.Func

_executeMethod 보호되어 있는 프로퍼티

protected Func _executeMethod
리턴 Task>.Func