ToolCommand.ICommand.CanExecute Method
For a description of this member, see ICommand.CanExecute.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Private Function CanExecute ( _
parameter As Object _
) As Boolean Implements ICommand.CanExecute
bool ICommand.CanExecute(
Object parameter
)
private:
virtual bool CanExecute(
Object^ parameter
) sealed = ICommand::CanExecute
private abstract CanExecute :
parameter:Object -> bool
private override CanExecute :
parameter:Object -> bool
JScript does not support explicit interface implementations.
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 nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Boolean
true if this command can be executed; otherwise, false.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the ToolCommand instance is cast to an ICommand interface.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace