title: USB Device Connected
body: <p>I'm trying to make a function that detects if a usb device is connected given the devices pid and vid.  I'm hoping it would look something like this, I'm just not sure how to do this in C#.</p>
  
  <pre><code>public bool IsUsbDeviceConnected(string pid, string vid)
  {
    //Code here
  }
  </code></pre>