11 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
14 private readonly
Guid menuGroup;
16 private readonly
int commandID;
20 public virtual int ID => commandID;
31 this.menuGroup = menuGroup;
32 this.commandID = commandID;
39 public override bool Equals(
object obj)
46 if (commandID.menuGroup.
Equals(menuGroup))
48 return commandID.commandID == this.commandID;
57 return (menuGroup.GetHashCode() << 2) | commandID;
Represents a unique command identifier that consists of a numeric command ID and a GUID menu group id...
virtual int ID
Gets the numeric command ID.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
override bool Equals(object o)
Returns a value that indicates whether this instance is equal to a specified object.
CommandID(Guid menuGroup, int commandID)
Initializes a new instance of the T:System.ComponentModel.Design.CommandID class using the specified ...
override bool Equals(object obj)
Determines whether two T:System.ComponentModel.Design.CommandID instances are equal.
static CultureInfo CurrentCulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the cu...
override string ToString()
Returns a T:System.String that represents the current object.
override int GetHashCode()
Serves as a hash function for a particular type.
Provides information about a specific culture (called a locale for unmanaged code development)....