gpt4 book ai didi

.net - 我应该在哪里保存一个 xml 文件,以便它可以在 Windows 注销时由服务写入?

转载 作者:可可西里 更新时间:2023-11-01 10:50:59 25 4
gpt4 key购买 nike

我应该在哪里保存一个 xml 文件,以便它可以在 Windows 注销时由服务(用 C# 编写)写入?

谢谢史蒂文

最佳答案

你可以使用 Isolated Storage ,但最合理的是 Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),因为它将它保存在机器上的用户配置文件中,用于运行该服务的任何帐户。

关于.net - 我应该在哪里保存一个 xml 文件,以便它可以在 Windows 注销时由服务写入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3494478/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com