PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model.​Controls Namespace / Undo­Redo­Command­Base Class / Undo­Redo­Command­Base Methods / Undo­Redo­Command­Base.​Can­Execute Method

UndoRedoCommandBase.CanExecute Method

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

Namespace:  PostSharp.Patterns.Model.Controls
Assembly:  PostSharp.Patterns.Xaml (in PostSharp.Patterns.Xaml.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public bool CanExecute(
	Object parameter
)

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 null.

Return Value

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

Implements

ICommand.CanExecute(Object)
See Also