Menu.CreateMenuHandle Menu.CreateMenuHandle Menu.CreateMenuHandle Menu.CreateMenuHandle Method

定义

创建 Menu 的新句柄。Creates a new handle to the Menu.

protected:
 virtual IntPtr CreateMenuHandle();
protected virtual IntPtr CreateMenuHandle ();
abstract member CreateMenuHandle : unit -> nativeint
override this.CreateMenuHandle : unit -> nativeint
Protected Overridable Function CreateMenuHandle () As IntPtr

返回

如果该方法成功,则为菜单的句柄;否则为 nullA handle to the menu if the method succeeds; otherwise, null.

安全性

SecurityPermission
用于处理非托管代码。for operating with unmanaged code. 关联的枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode

适用于