title: UWP Application - How to detect a CDRom or DVDRom device in StorageDevices
body: <p>In a UWP application, I obtain all the removable devices with :</p>
  
  <pre><code>KnownFolders.RemovableDevices.GetFoldersAsync()
  </code></pre>
  
  <p>I want to exclude optical devices and keep only the external hard disk or flash devices.</p>
  
  <p>I tried to find a suitable property by using the following :</p>
  
  <pre><code>device.Properties.RetrievePropertiesAsync(...)
  </code></pre>
  
  <p>and tried a lot of properties from <a href="https://docs.microsoft.com/en-us/windows/desktop/properties/devices-bumper" rel="nofollow noreferrer">here</a> but can't fin anything.</p>
  
  <p>Anybody have an idea?</p>