CanExecute Method
Collapse the table of content
Expand the table of content

ICommand.CanExecute Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines the method that determines whether the command can execute in its current state.

Namespace:  System.Windows.Input
Assembly:  System (in System.dll)

'Declaration
Function CanExecute ( _
	parameter As Object _
) As Boolean

Parameters

parameter
Type: System.Object
Data used by the command. If the command does not require data to be passed, this object can be set to Nothing.

Return Value

Type: System.Boolean
true if this command can be executed; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft