DelegateCommand Constructor (Action<Object^>^, Predicate<Object^>^)

Visual Studio 2015
 

Initializes a new instance of the DelegateCommand class.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
DelegateCommand(
	Action<Object^>^ execute,
	Predicate<Object^>^ canExecute
)

Parameters

execute
Type: System::Action<Object^>^

The delegate to call when executing the command.

canExecute
Type: System::Predicate<Object^>^

The delegate to call when querying the command.

Return to top
Show: