@@ -86,7 +86,8 @@ namespace Microsoft.Windows.Storage
8686 static ApplicationData GetForPackageFamily(String packageFamilyName);
8787
8888 /// Get an instance of ApplicationData for the specified unpackaged app for the current user.
89- [feature(Feature_ApplicationData)]
89+ /// @note This method respects impersonation.
90+ /// @warning The returned instance of ApplicationData does not support LocalCache, PublisherCache or SharedLocal features.
9091 [contract(ApplicationDataContract, 2)]
9192 static ApplicationData GetForUnpackaged(String publisher, String product);
9293
@@ -95,6 +96,7 @@ namespace Microsoft.Windows.Storage
9596
9697 /// Return the path for the local cache data store not included in backup and restore operations.
9798 /// @note This is equivalent to Windows.Storage.ApplicationData.LocalCacheFolder().Path()
99+ /// @warning This method is not supported if the ApplicationData instance was acquired via GetForUnpackaged().
98100 /// @see https://learn.microsoft.com/uwp/api/windows.storage.applicationdata.localcachefolder
99101 String LocalCachePath { get; };
100102
@@ -111,6 +113,7 @@ namespace Microsoft.Windows.Storage
111113
112114 /// Return the path for the shared data store.
113115 /// @note This is equivalent to Windows.Storage.ApplicationData.SharedLocalFolder().Path()
116+ /// @warning This method is not supported if the ApplicationData instance was acquired via GetForUnpackaged().
114117 /// @see https://learn.microsoft.com/uwp/api/windows.storage.applicationdata.sharedlocalfolder
115118 String SharedLocalPath { get; };
116119
@@ -120,6 +123,7 @@ namespace Microsoft.Windows.Storage
120123 String TemporaryPath { get; };
121124
122125 /// Return a StorageFolder for the local cache data store not included in backup and restore operations.
126+ /// @warning This method is not supported if the ApplicationData instance was acquired via GetForUnpackaged().
123127 /// @see https://learn.microsoft.com/uwp/api/windows.storage.applicationdata.localcachefolder
124128 Windows.Storage.StorageFolder LocalCacheFolder { get; };
125129
@@ -134,6 +138,7 @@ namespace Microsoft.Windows.Storage
134138 Windows.Storage.StorageFolder MachineFolder { get; };
135139
136140 /// Return a StorageFolder for the shared data store.
141+ /// @warning This method is not supported if the ApplicationData instance was acquired via GetForUnpackaged().
137142 /// @see https://learn.microsoft.com/uwp/api/windows.storage.applicationdata.sharedlocalfolder
138143 Windows.Storage.StorageFolder SharedLocalFolder { get; };
139144
@@ -157,10 +162,12 @@ namespace Microsoft.Windows.Storage
157162
158163 /// Return the specified path of the shared data store for the publisher of the app.
159164 /// @note This is equivalent to Windows.Storage.ApplicationData.GetPublisherCacheFolder(folderName).Path()
165+ /// @warning This method is not supported if the ApplicationData instance was acquired via GetForUnpackaged().
160166 /// @see https://learn.microsoft.com/uwp/api/windows.storage.applicationdata.getpublishercachefolder
161167 String GetPublisherCachePath(String folderName);
162168
163169 /// Return the specified subfolder of the shared data store for the publisher of the app.
170+ /// @warning This method is not supported if the ApplicationData instance was acquired via GetForUnpackaged().
164171 /// @see https://learn.microsoft.com/uwp/api/windows.storage.applicationdata.getpublishercachefolder
165172 Windows.Storage.StorageFolder GetPublisherCacheFolder(String folderName);
166173 }
0 commit comments