コード例 #1
0
        public bool ResetPort()
        {
            Console.WriteLine($"device: reset device with instanceId: {instanceId}");
            bool result = PortHelper.TryResetPortByInstanceId(instanceId);

            // Search for new devices attaching
            RescanForHardwareChanges();

            return(result);
        }