Edit

Share via


NSWorkspace.Notifications.ObserveWillPowerOff Method

Definition

Overloads

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

ObserveWillPowerOff(EventHandler<NSNotificationEventArgs>)

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

Parameters

Returns

Applies to

ObserveWillPowerOff(NSObject, EventHandler<NSNotificationEventArgs>)

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

Parameters

objectToObserve
NSObject

Returns

Applies to