共用方式為


NSApplication.Notifications.ObserveWillBecomeActive 方法

定義

多載

ObserveWillBecomeActive(EventHandler<NSNotificationEventArgs>)
ObserveWillBecomeActive(NSObject, EventHandler<NSNotificationEventArgs>)

ObserveWillBecomeActive(EventHandler<NSNotificationEventArgs>)

public static Foundation.NSObject ObserveWillBecomeActive (EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveWillBecomeActive : EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject

參數

傳回

適用於

ObserveWillBecomeActive(NSObject, EventHandler<NSNotificationEventArgs>)

public static Foundation.NSObject ObserveWillBecomeActive (Foundation.NSObject objectToObserve, EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveWillBecomeActive : Foundation.NSObject * EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject

參數

objectToObserve
NSObject

傳回

適用於