protected override bool ReleaseHandle()
        {
            bool success = NativeMethods.BluetoothUnregisterAuthentication(handle);
            int  gle     = Marshal.GetLastWin32Error();

            System.Diagnostics.Debug.Assert(success,
                                            "BluetoothUnregisterAuthentication returned false, GLE="
                                            + gle.ToString() + "=0x" + gle.ToString("X"));
            return(success);
        }
        private bool disposedValue = false; // To detect redundant calls

        void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: dispose managed state (managed objects).
                }

                Win32Native.BluetoothUnregisterAuthentication(_handle);

                disposedValue = true;
            }
        }