XamlUICommand.CanExecute(Object) 메서드

정의

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

public:
 virtual bool CanExecute(Platform::Object ^ parameter) = CanExecute;
bool CanExecute(IInspectable const& parameter);
// This member is not implemented in C#
function canExecute(parameter)
' This member is not implemented in VB.NET

매개 변수

parameter
Object

Platform::Object

IInspectable

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

반환

Boolean

bool

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

구현

M:Windows.UI.Xaml.Input.ICommand.CanExecute(System.Object) M:System.Windows.Input.ICommand.CanExecute(System.Object) M:Windows.UI.Xaml.Input.ICommand.CanExecute(Platform::Object) M:Windows.UI.Xaml.Input.ICommand.CanExecute(IInspectable)

설명

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

적용 대상

추가 정보