【问题标题】:Custom scope for .NET application settings.NET 应用程序设置的自定义范围
【发布时间】:2009-07-29 20:05:51
【问题描述】:

我可以定义我的自定义范围:

[AttributeUsage(AttributeTargets.Property)]
public sealed class SiteScopedSettingAttribute : SettingAttribute
{
}

如何在 Visual Studio 设置编辑器中使用它(使其在“范围”组合框中可用)?

【问题讨论】:

    标签: .net scope settings


    【解决方案1】:

    为此,您必须手动编辑 Settings.settings 文件,将其打开为 XML 文件并将文本放入 Scope XML 属性中。

    【讨论】:

      猜你喜欢
      • 2021-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-26
      • 2013-02-05
      • 1970-01-01
      • 2012-09-18
      相关资源
      最近更新 更多