Bloxy.USBBluetoothAdapter.Close C# (CSharp) Метод

Close() публичный Метод

public Close ( ) : void
Результат void
        public void Close()
        {
            if (_device != null)
              {
            if (_device.IsOpen)
            {
              IUsbDevice whole = _device as IUsbDevice;

              if (!ReferenceEquals(whole, null))
              {
            whole.ReleaseInterface(1);
              }

              _device.Close();
              UsbDevice.Exit();
            }
              }
        }