ICommandService.CanExecuteCommand Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Verifies whether the specified command can be executed.

Namespace:  System.Activities.Design
Assembly:  System.Activities.Design (in System.Activities.Design.dll)

Syntax

'Declaration
Function CanExecuteCommand ( _
    commandId As Integer _
) As Boolean
'Usage
Dim instance As ICommandService
Dim commandId As Integer
Dim returnValue As Boolean

returnValue = instance.CanExecuteCommand(commandId)
bool CanExecuteCommand(
    int commandId
)
bool CanExecuteCommand(
    int commandId
)
function CanExecuteCommand(
    commandId : int
) : boolean
abstract CanExecuteCommand : 
        commandId:int -> bool 

Parameters

  • commandId
    Type: System.Int32
    The command identifier to be checked.

Return Value

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

Exceptions

Exception Condition
NotSupportedException

The command is not supported.

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ICommandService Interface

ICommandService Members

System.Activities.Design Namespace