CommandID Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

System::Object
  System.ComponentModel.Design::CommandID

[ComVisibleAttribute(true)]
[HostProtectionAttribute(SecurityAction::LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = "FullTrust")]
public ref class CommandID 

NameDescription
System_CAPS_pubmethodCommandID(Guid, Int32)

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

NameDescription
System_CAPS_pubpropertyGuid

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

System_CAPS_pubpropertyID

Gets the numeric command ID.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether two CommandID instances are equal.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a particular type.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a String that represents the current object.(Overrides Object::ToString().)

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.

NamedPermissionSet

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

.NET Framework
Available since 1.1

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

Return to top
Show: