IExecutableCommand.SetEnabledState(Nullable<Boolean>) Method

Definition

Set this command as enabled, disabled, or null to determine the enabled state from registered metadata. Setting this value to null will fall back to using the registered metadata context rule if one was provided.

C#
public void SetEnabledState(bool? isEnabled);

Parameters

isEnabled
Nullable<Boolean>

The new enabled state of this command.

Applies to

Produit Versions
Visual Studio SDK 2022