Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ButtonBase.CommandParameter Property

Definition

Namespace:
System.Windows.Forms
Assembly:
System.Windows.Forms.dll
Source:
ButtonBase.cs
Source:
ButtonBase.cs
Source:
ButtonBase.cs
Source:
ButtonBase.cs
Source:
ButtonBase.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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.

public:
 property System::Object ^ CommandParameter { System::Object ^ get(); void set(System::Object ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))]
public object? CommandParameter { get; set; }
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public object? CommandParameter { [System.Runtime.Versioning.RequiresPreviewFeatures] get; [System.Runtime.Versioning.RequiresPreviewFeatures] set; }
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public object? CommandParameter { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))>]
member this.CommandParameter : obj with get, set
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
[<get: System.Runtime.Versioning.RequiresPreviewFeatures>]
[<set: System.Runtime.Versioning.RequiresPreviewFeatures>]
member this.CommandParameter : obj with get, set
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.CommandParameter : obj with get, set
Public Property CommandParameter As Object

Property Value

Attributes

Applies to


Feedback

Was this page helpful?