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

'宣言
Public ReadOnly Property CommandId As Integer
'使用
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.

Permissions

See Also

Reference

OleCommand Class

OleCommand Members

Microsoft.VisualStudio.Data Namespace