Share via


OleCommand.CommandId Property

Retrieves the ID of the command from within the specified menu group.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public ReadOnly Property CommandId As Integer
'Usage
Dim instance As OleCommand 
Dim value As Integer 

value = instance.CommandId
public int CommandId { get; }
public:
property int CommandId {
    int get ();
}
public function get CommandId () : int

Property Value

Type: System.Int32
Returns an integer value representing the command ID.

.NET Framework Security

See Also

Reference

OleCommand Class

OleCommand Members

Microsoft.VisualStudio.Data Namespace