Share via


ICommand.CanExecute(Object) 메서드

정의

명령이 현재 상태에서 실행할 수 있는지 여부를 검색합니다.

public:
 bool CanExecute(Platform::Object ^ parameter);
bool CanExecute(IInspectable const& parameter);
public bool CanExecute(object parameter);
function canExecute(parameter)
Public Function CanExecute (parameter As Object) As Boolean

매개 변수

parameter
Object

Platform::Object

IInspectable

명령에 사용된 데이터입니다. 명령에 데이터가 필요하지 않은 경우 이 개체를 로 null설정할 수 있습니다.

반환

Boolean

bool

이 명령을 실행할 수 있으면 true이고, 그러지 않으면 false입니다.

설명

일반적으로 명령 소스는 CanExecuteChanged 이벤트가 발생할 때 이 메서드를 호출합니다.

적용 대상

추가 정보