ICommandTarget.CanExecute Method
Applies to v2.
Specifies that the command status can be executed.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Function CanExecute ( _
commandId As ICommandId, _
parameter As Object _
) As CommandStatus
'Usage
Dim instance As ICommandTarget
Dim commandId As ICommandId
Dim parameter As Object
Dim returnValue As CommandStatus
returnValue = instance.CanExecute(commandId, _
parameter)
CommandStatus CanExecute(
ICommandId commandId,
Object parameter
)
CommandStatus CanExecute(
ICommandId^ commandId,
Object^ parameter
)
abstract CanExecute :
commandId:ICommandId *
parameter:Object -> CommandStatus
function CanExecute(
commandId : ICommandId,
parameter : Object
) : CommandStatus
Parameters
commandId
Type: Microsoft.WebMatrix.Extensibility.ICommandIdThe command identifier.
parameter
Type: System.ObjectThe command parameter.
Return Value
Type: Microsoft.WebMatrix.Extensibility.CommandStatus
The command status.