1
A
回答
2
你可以決定你的獨立存儲中的可用空間是這樣的:
using System;
using System.IO;
using System.IO.IsolatedStorage;
public class CheckingSpace
{
public static void Main()
{
// Get an isolated store for this assembly and put it into an
// IsolatedStoreFile object.
IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
IsolatedStorageScope.Assembly, null, null);
// Create a few placeholder files in the isolated store.
new IsolatedStorageFileStream("InTheRoot.txt", FileMode.Create, isoStore);
new IsolatedStorageFileStream("Another.txt", FileMode.Create, isoStore);
new IsolatedStorageFileStream("AThird.txt", FileMode.Create, isoStore);
new IsolatedStorageFileStream("AFourth.txt", FileMode.Create, isoStore);
new IsolatedStorageFileStream("AFifth.txt", FileMode.Create, isoStore);
Console.WriteLine(isoStore.AvailableFreeSpace + " bytes of space remain in this isolated store.");
} // End of Main.
}
0
0
有兩個答案談論多少空間。或者,你可能會問the location而變動的基於OS:
下表顯示了上一些常見的操作系統創建的獨立存儲根位置。尋找微軟\ IsolatedStorage目錄這根位置
如果它沒有這些(可用空間,位置)之下,那麼你需要編輯你的問題,讓你在尋找更清楚什麼樣的信息。
+0
嘿,其實我想知道爲在Windows XP上運行的特定應用程序提供的總空間... – Anirudha
相關問題
- 1. 操作系統如何知道進程的執行時間
- 2. 操作系統提供的抽象
- 3. appDomain如何提供隔離
- 4. 如何提供隔離?
- 5. 如何知道我目前的操作系統是否是C#中的Windows Vista?
- 6. windows phone 7隔離存儲 - 操作不允許
- 7. 我如何知道我正在使用的操作系統?
- 8. BrowserStack TestSwarm僅提取Windows操作系統
- 9. 操作系統如何知道沒有互聯網連接的時間?
- 10. 獲取系統信息,如操作系統版本,電池,存儲空間,內存等
- 11. 如何通過PHP和Javascript知道客戶端操作系統?
- 12. 操作系統如何知道物理內存的真實大小?
- 13. 如何與操作系統Windows
- 14. 在文件系統中Silverlight是否存在隔離存儲?
- 15. Adobe AIR全系統存儲空間
- 16. 在Windows操作系統中的pathos軟件包操作系統
- 17. Windows Mobile操作系統8
- 18. Windows操作系統簽名
- 19. windows phone 7的隔離存儲位置?
- 20. 隔離存儲
- 21. 隔離存儲
- 22. 如何知道如果一個文件被「存儲在文件系統緩存」
- 23. F#windows手機隔離存儲和XML
- 24. iPhone操作系統 - 屏幕空間轉換爲世界空間
- 25. Amazon S3如何提供無限存儲空間?
- 26. 當操作系統將程序從文件系統加載到內存中時,操作系統如何知道程序有多大?
- 27. Windows操作系統體系結構書
- 28. 從隔離存儲提取zip文件
- 29. MySQL操作系統緩存
- 30. 從隔離儲存
看起來像AvailableFreeSpace屬性是.nEt FrameWork 4.0功能cuz它沒有顯示在我的控制檯基於.net 3.5 .. – Anirudha
在以前的版本中使用: long spaceLeft =(long)(isoStore.MaximumSize - isoStore.CurrentSize) ; –
嗨,Thaxx Brian Knight 它提供了一個非常大的數字..孤立的存儲真的有一個應用程序的這麼大的空間.... – Anirudha