Windows.Devices.Enumeration.DeviceWatcher.Stop C# (CSharp) Méthode

Stop() public méthode

public Stop ( ) : void
Résultat void
		public extern void Stop();
	}

Usage Example

        /// <summary>
        /// Release resources used for WiFi Test
        /// </summary>
        private void ReleaseWiFi()
        {
            // Stop the watcher
            if (_watcher != null)
            {
                if (_watcher.Status == DeviceWatcherStatus.Started)
                {
                    _watcher.Stop();
                }
                _watcher.Added   -= _watcher_Added;
                _watcher.Removed -= _watcher_Removed;
            }

            if (_deviceList != null)
            {
                foreach (var device in _deviceList)
                {
                    device.AvailableNetworksChanged -= device_AvailableNetworksChanged;
                }
                _deviceList.Clear();
            }

            listWiFi.Items.Clear();

            _started = false;
        }
All Usage Examples Of Windows.Devices.Enumeration.DeviceWatcher::Stop
DeviceWatcher