title: Setting Clipboard content using a Background Task [Windows 10] [UWP]
body: <p>I'm working on a Universal Windows 10 App. At the moment I have a background task that gets triggered once the user receives a notification. The purpose of this BG task is to copy the content of the notification. The problem is that the Clipboard.setcontent method appears to be single threaded as opposed to the multi threaded BG task. I have tried using the corewindow dispatcher but that didn't work, I also tried using tasks. Could someone point me out to the solution please?</p>
  
  <p>E.g. the following code in a background task throws the exception:</p>
  
  <blockquote>
    <p>Activating a single-threaded class from MTA is not supported (Exception from HRESULT: 0x8000001D).</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>var dataPackage = new DataPackage { RequestedOperation = DataPackageOperation.Copy };
  dataPackage.SetText("Hello World!");
  Clipboard.SetContent(dataPackage);
  </code></pre>