This documentation is archived and is not being maintained.

CommandID Class

Represents a unique command identifier that consists of a numeric command ID and a GUID menu group identifier.

For a list of all members of this type, see CommandID Members.


[Visual Basic]
Public Class CommandID
public class CommandID
public __gc class CommandID
class CommandID

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


A CommandID uniquely identifies a command. A unique command identification system prevents conflicts between command identifiers. Command IDs consist of a menu group GUID and a numeric command identifier.


Namespace: System.ComponentModel.Design

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

CommandID Members | System.ComponentModel.Design Namespace | IMenuCommandService | MenuCommand