示例:

    //显示设置配额
            System.IO.IsolatedStorage.IsolatedStorageFile userStoreForSite = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite();
            if (userStoreForSite.Quota<15*1024*1024)
            {
                if (userStoreForSite.IncreaseQuotaTo(15 * 1024 * 1024))
                {
                    MessageBox.Show("设置成功!");
                }               
            } 

    会弹出一个对话框向用户确认。

 

注意:

    在构造方法中执行不会弹出对话框,不知道这是为什么,我这里把代码的放在了一个按钮的事件中。

 

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-11-18
  • 2021-07-24
猜你喜欢
  • 2021-12-20
  • 2021-06-26
  • 2021-12-10
  • 2022-12-23
  • 2021-12-16
  • 2021-12-02
  • 2021-09-06
相关资源
相似解决方案