CommandID CommandID CommandID CommandID Class

定義

表示由數值命令 ID 和 GUID 功能表群組識別項所組成的唯一命令識別項 (Command Identifier)。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
繼承
CommandIDCommandIDCommandIDCommandID
屬性

備註

CommandID唯一識別命令。A CommandID uniquely identifies a command. 唯一的命令識別系統可防止命令識別碼之間發生衝突。A unique command identification system prevents conflicts between command identifiers. 命令 Id 是由功能表群組 GUID 和數值命令識別碼所組成。Command IDs consist of a menu group GUID and a numeric command identifier.

建構函式

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

使用指定的功能表群組 GUID 和命令 ID 數,初始化 CommandID 類別的新執行個體。Initializes a new instance of the CommandID class using the specified menu group GUID and command ID number.

屬性

Guid Guid Guid Guid

取得這個 CommandID 所識別功能表命令所屬之功能表群組的 GUID。Gets the GUID of the menu group that the menu command identified by this CommandID belongs to.

ID ID ID ID

取得數值命令 ID。Gets the numeric command ID.

方法

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

判斷兩個 CommandID 執行個體是否相等。Determines whether two CommandID instances are equal.

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

做為特定型別的雜湊函式。Serves as a hash function for a particular type.

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

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

傳回表示目前物件的 StringReturns a String that represents the current object.

安全性

NamedPermissionSet
以取得系統資源的完整存取權。for full access to system resources. 需求值: LinkDemandInheritanceDemandDemand values: LinkDemand, InheritanceDemand. 相關聯的狀態:Associated state:

適用於

另請參閱