NSMenu.Notifications.ObserveDidAddItem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ObserveDidAddItem(EventHandler<NSMenuItemIndexEventArgs>) | |
ObserveDidAddItem(NSObject, EventHandler<NSMenuItemIndexEventArgs>) |
ObserveDidAddItem(EventHandler<NSMenuItemIndexEventArgs>)
public static Foundation.NSObject ObserveDidAddItem (EventHandler<AppKit.NSMenuItemIndexEventArgs> handler);
static member ObserveDidAddItem : EventHandler<AppKit.NSMenuItemIndexEventArgs> -> Foundation.NSObject
参数
- handler
- EventHandler<NSMenuItemIndexEventArgs>
返回
适用于
ObserveDidAddItem(NSObject, EventHandler<NSMenuItemIndexEventArgs>)
public static Foundation.NSObject ObserveDidAddItem (Foundation.NSObject objectToObserve, EventHandler<AppKit.NSMenuItemIndexEventArgs> handler);
static member ObserveDidAddItem : Foundation.NSObject * EventHandler<AppKit.NSMenuItemIndexEventArgs> -> Foundation.NSObject
参数
- objectToObserve
- NSObject
- handler
- EventHandler<NSMenuItemIndexEventArgs>