MenuCommands 类

定义一组 CommandID 字段,每个字段都与宿主环境提供的命令函数相对应。

**命名空间:**System.Windows.Forms.Design
**程序集:**System.Design(在 system.design.dll 中)

语法

声明
Public NotInheritable Class MenuCommands
    Inherits StandardCommands
用法
Dim instance As MenuCommands
public sealed class MenuCommands : StandardCommands
public ref class MenuCommands sealed : public StandardCommands
public final class MenuCommands extends StandardCommands
public final class MenuCommands extends StandardCommands

备注

MenuCommands 包含一组 CommandID 字段,可用于在使用 IMenuCommandServiceAddCommand 方法添加命令时指定要链接的命令。

继承层次结构

System.Object
   System.ComponentModel.Design.StandardCommands
    System.Windows.Forms.Design.MenuCommands

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

MenuCommands 成员
System.Windows.Forms.Design 命名空间