`
March
  • 浏览: 13401 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

阿斯蒂芬阿斯蒂芬

阅读更多
        public static bool Delete(User path)
        {
            path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, path);

            try
            {
                if (File.Exists(path))
                {
                    File.Delete(path);
                    return true;
                }
                else
                {
                    return true;
                }
            }
            catch (Exception e)
            {
                e.Message.ToString();
                return false;
            }
        }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics