Check whether the
ICommand object can run.
Syntax
| Visual Basic (Declaration) | |
|---|
Function CanExecute() As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ICommand
Dim value As Boolean
value = instance.CanExecute() |
| Managed Extensions for C++ | |
|---|
bool CanExecute(); |
| C++/CLI | |
|---|
bool CanExecute(); |
Return Value
True if the
ICommand object can run; Otherwise, false.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also