MenuCommandService.FindCommand 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋 MenuCommand 與該指令 ID 相關的
多載
| 名稱 | Description |
|---|---|
| FindCommand(CommandID) |
搜尋 MenuCommand 與該指令 ID 相關的 |
| FindCommand(Guid, Int32) |
搜尋與該指令相關的 。MenuCommand |
FindCommand(CommandID)
搜尋 MenuCommand 與該指令 ID 相關的
public:
virtual System::ComponentModel::Design::MenuCommand ^ FindCommand(System::ComponentModel::Design::CommandID ^ commandID);
public System.ComponentModel.Design.MenuCommand FindCommand(System.ComponentModel.Design.CommandID commandID);
public System.ComponentModel.Design.MenuCommand? FindCommand(System.ComponentModel.Design.CommandID commandID);
abstract member FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
override this.FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
Public Function FindCommand (commandID As CommandID) As MenuCommand
參數
傳回
與 MenuCommand 該指令相關;否則, null 若找不到該指令。
實作
另請參閱
適用於
FindCommand(Guid, Int32)
搜尋與該指令相關的 。MenuCommand
protected:
System::ComponentModel::Design::MenuCommand ^ FindCommand(Guid guid, int id);
protected System.ComponentModel.Design.MenuCommand FindCommand(Guid guid, int id);
protected System.ComponentModel.Design.MenuCommand? FindCommand(Guid guid, int id);
member this.FindCommand : Guid * int -> System.ComponentModel.Design.MenuCommand
Protected Function FindCommand (guid As Guid, id As Integer) As MenuCommand
參數
- guid
- Guid
指揮官的 GUID。
- id
- Int32
指揮官的ID。
傳回
與 MenuCommand 該指令相關;否則, null 若找不到該指令。