NetworkReachability.SetNotification(NetworkReachability+Notification) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the method to be invoked when network reachability changes.
public SystemConfiguration.StatusCode SetNotification (SystemConfiguration.NetworkReachability.Notification callback);
member this.SetNotification : SystemConfiguration.NetworkReachability.Notification -> SystemConfiguration.StatusCode
Parameters
- callback
- NetworkReachability.Notification
The method to invoke on a network reachability change.
Returns
True if the operation succeeded, false otherwise.
Remarks
The notification is invoked on either the runloop configured in the call to Schedule(CFRunLoop, String), or dispatched on the queue specified with SetDispatchQueue(DispatchQueue)