C# 클래스 GoogleCloudExtension.Utils.ProtectedCommand

This class implements the ICommand interface and wraps the action for the command in ErrorHandlerUtils.HandleExceptions(Action) to handle the exceptions that could escape.
상속: ICommand
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
ProtectedCommand ( System.Action handler, bool canExecuteCommand = true ) : System

Initializes a new instance of ProtectedCommand.

메소드 상세

CanExecute() 공개 메소드

public CanExecute ( object parameter ) : bool
parameter object
리턴 bool

Execute() 공개 메소드

public Execute ( object parameter ) : void
parameter object
리턴 void

ProtectedCommand() 공개 메소드

Initializes a new instance of ProtectedCommand.
public ProtectedCommand ( System.Action handler, bool canExecuteCommand = true ) : System
handler System.Action The action to execute when the command is executed.
canExecuteCommand bool Whether the command is enabled or not.
리턴 System