Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICommandSource.CommandParameter Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Represents a user defined data value that can be passed to the command when it is executed.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

object CommandParameter { get; }

Property Value

Type: System.Object

The command specific data.

Normally, the CommandParameter is used to pass specific information to the command when it is executed. The type of the data is defined by the command.

.NET Framework
Available since 3.0
Return to top
© 2018 Microsoft