如何使用C#创建,编辑和删除.sol文件. [英] how to create, edit and delete .sol file using c#.
本文介绍了如何使用C#创建,编辑和删除.sol文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用c#创建,编辑和删除.sol(本地共享对象或Flash Coockies)文件.给我一个简短的想法.或任何其他替代解决方案.
在此先感谢
how to create, edit and delete .sol (local shared object or flash coockies) file using c#. give me brief idea about it. or any alternative solutions for this.
Thanks in advance
推荐答案
创建SharedObjects
-------------------------------------------------- --------------
SharedObjectService sos = new SharedObjectService();
IScope iScope;
iScope.setPath(path);//指定目标路径
iScope.setName("hhd_status");
iScope.setAttribute("result","connected");
sos.createSharedObject(iScope,"hhd_status",true);
读取SharedObjects
-------------------------------------------------- --------------
SharedObjectService sos = new SharedObjectService();
IScope iScope;
sos.getSharedObject(iScope,"hhd_status",true);
就是这样.
Creating SharedObjects
----------------------------------------------------------------
SharedObjectService sos = new SharedObjectService();
IScope iScope;
iScope.setPath(path);// Specify the destination path
iScope.setName("hhd_status");
iScope.setAttribute("result", "connected");
sos.createSharedObject(iScope, "hhd_status", true);
Reading SharedObjects
----------------------------------------------------------------
SharedObjectService sos = new SharedObjectService();
IScope iScope;
sos.getSharedObject(iScope, "hhd_status", true);
Thats All.
这篇关于如何使用C#创建,编辑和删除.sol文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文