Ejemplo n.º 1
0
        /// <summary>
        /// 从服务端下载应用程序文件。
        /// </summary>
        /// <param name="entName">企业名称。</param>
        /// <param name="fileName">文件绝对路径。</param>
        public static void DeleteAppFile(string entName, string fileName)
        {
            FileInfo   info   = new FileInfo(fileName);
            string     result = client.ufileDelete(entName, info.Name);
            ReturnCode code   = GetReturn(result);

            VerifyReturnCode(code.code);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 从服务端下载应用程序文件。
        /// </summary>
        /// <param name="entName">企业名称。</param>
        /// <param name="fileName">文件绝对路径。</param>
        public static void DeleteAppFile(string entName, string fileName)
        {
            FileInfo info = new FileInfo(fileName);
            string   name = info.Name;

            if (info.Extension == ".exe")
            {
                name = string.Format("{0}.remove", info.Name);
            }
            string     result = client.ufileDelete(entName, name);
            ReturnCode code   = GetReturn(result);

            VerifyReturnCode(code.code);
        }