ToolStripItem.CommandParameter Property

Definition

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Gets or sets the parameter that is passed to the ICommand that's assigned to the Command property.

C#
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public object CommandParameter { [System.Runtime.Versioning.RequiresPreviewFeatures] get; [System.Runtime.Versioning.RequiresPreviewFeatures] set; }
C#
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public object? CommandParameter { get; set; }

Property Value

Attributes

Applies to

Product Versions
Windows Desktop 7, 8, 9