title: Writing data from background task
body: <p>I what to change variable in localsetting in my app from bagground task. I have wroute such code fjr background task:</p>
  
  <pre><code>namespace TestTask
      {
          public sealed class Task :IBackgroundTask
          {
              public void Run(IBackgroundTaskInstance taskInstance)
              {
                  BackgroundTaskDeferral _deferral = taskInstance.GetDeferral();
                  var storage = Windows.Storage.ApplicationData.Current.LocalSettings;
                  int i = (int)storage.Values["var"];
                  i++;
  
                  storage.Values["var"] = i;
  
                  _deferral.Complete();
              }
          }
      }
  </code></pre>
  
  <p>And that task read data, but cannot write. And Localsettings parametr isreadonly is true.
  Maybe there is another way to solve my issue?</p>