RibbonButton.CommandId Property

Applies to v2.

Gets or sets the command ID to invoke when the button is pressed.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Property CommandId As ICommandId 
    Get 
    Private Set
'Usage
Dim instance As RibbonButton 
Dim value As ICommandId 

value = instance.CommandId
public ICommandId CommandId { get; private set; }
public:
property ICommandId^ CommandId {
    ICommandId^ get ();
    private: void set (ICommandId^ value);
}
member CommandId : ICommandId with get, private set
function get CommandId () : ICommandId 
private function set CommandId (value : ICommandId)

Property Value

Type: Microsoft.WebMatrix.Extensibility.ICommandId
The command ID to invoke when the button is pressed.

See Also

Reference

RibbonButton Class

Microsoft.WebMatrix.Extensibility Namespace