开发者

Persistence on an online click once application

开发者 https://www.devze.com 2023-01-06 03:05 出处:网络
Is there a way to persist an string from an online click once application. I saw something about isolated file storage as answers to other questions. But none of them specify if it works also for onli

Is there a way to persist an string from an online click once application. I saw something about isolated file storage as answers to other questions. But none of them specify if it works also for online apps (I really don't think so).

I think that something like a cookie will work. Is there something like that available?

The application must run only online (is triggered with some parameters), but for each user it needs to save a file with specific information asked to him. O开发者_JAVA百科nce the app runs for the very first time it must not ask for that info to the user.

Thanks.


You can store the information in LocalApplicationData. Just create a directory with either your application name or your company name, stick the string in a file, and read it from there. This article shows you how to persist this data, and not have it impacted by ClickOnce updates. It will work even though your application is online-only. (Online-only C/O apps are still installed, it just means it always runs it from the URL, and requires the user to be connected in order to install the app.)

0

精彩评论

暂无评论...
验证码 换一张
取 消