Access local application data in a Universal Windows Applicaiton
<p>I'm trying to port the following to a UWP app:</p>

<p><code>var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string spotlightPath = System.IO.Path.Combine(localAppData, "Packages\\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\\LocalState\\Assets");
</code></p>

<p>It look like ApplicationData.LocalFolder is exactly what I need: "Gets the root folder in the local app data store."</p>

<p>(from <a href="https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.aspx</a>) </p>

<p>I can't work out how to access it though:
<code>var localAppData = ApplicationData.LocalFolder;
</code></p>

<p>Gives the following error: An object reference is required for the non-static field, method, or property 'ApplicationData.LocalFolder'</p>