title: How to access UWP application settings set by MDM?
body: <p>I am using EnterpriseModernAppManagement CSP to install and set settings for some UWP app as defined here:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/windows/hardware/dn904956(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/hardware/dn904956(v=vs.85).aspx</a></p>
  
  <blockquote>
    <p>.../PackageFamilyName/AppSettingPolicy/SettingValue (only for
    ./User/Vendor/MSFT) Added in Windows 10, version 1511. The
    SettingValue and data represent a key value pair to be configured for
    the app.</p>
  </blockquote>
  
  <p>UWP app installs correctly and settings setup (via AppSettingPolicy) execute successfully.</p>
  
  <p>But how do I now access those custom settings inside the app itself with c#?</p>
  
  <p>Both <em>Windows.Storage.ApplicationData.Current.LocalSetting.Values</em> and <em>Windows.Storage.ApplicationData.Current.RoamingSettings.Values</em> key/value pairs seem empty and unaffected by MDM changes.</p>
  
  <p>Is there any way to send arbitrary settings/configuration to a custom UWP application via MDM?</p>