zoukankan      html  css  js  c++  java
  • IsolatedStorageFile 配额等

    示例:

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

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

    注意:

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

  • 相关阅读:
    uva 532
    uva 10557
    uva 705
    uva 784
    uva 657
    uva 572
    uva 10562
    usa物价统计
    2019/6/30,道歉书
    名词收集
  • 原文地址:https://www.cnblogs.com/chencidi/p/1695242.html
Copyright © 2011-2022 走看看