CommandID CommandID CommandID CommandID Class

Definition

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

public ref class CommandID
[System.Runtime.InteropServices.ComVisible(true)]
public class CommandID
type CommandID = class
Public Class CommandID
Inheritance
CommandIDCommandIDCommandIDCommandID
Attributes

Remarks

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.

Constructors

CommandID(Guid, Int32) CommandID(Guid, Int32) CommandID(Guid, Int32) CommandID(Guid, Int32)

Initializes a new instance of the CommandID class using the specified menu group GUID and command ID number.

Properties

Guid Guid Guid Guid

Gets the GUID of the menu group that the menu command identified by this CommandID belongs to.

ID ID ID ID

Gets the numeric command ID.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether two CommandID instances are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for a particular type.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a String that represents the current object.

Security

NamedPermissionSet
for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

Applies to

See also