共用方式為


NSWindow.Notifications.ObserveWillClose 方法

定義

多載

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

ObserveWillClose(EventHandler<NSNotificationEventArgs>)

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

參數

傳回

適用於

ObserveWillClose(NSObject, EventHandler<NSNotificationEventArgs>)

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

參數

objectToObserve
NSObject

傳回

適用於