共用方式為


NSWorkspace.Notifications.ObserveActiveSpaceDidChange 方法

定義

多載

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

ObserveActiveSpaceDidChange(EventHandler<NSNotificationEventArgs>)

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

參數

傳回

適用於

ObserveActiveSpaceDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

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

參數

objectToObserve
NSObject

傳回

適用於