1
我可以定義我的自定義範圍自定義範圍:用於.NET應用程序的設置
[AttributeUsage(AttributeTargets.Property)]
public sealed class SiteScopedSettingAttribute : SettingAttribute
{
}
如何使用它在Visual Studio設置編輯器(使其可在「範圍」下拉框)?
我可以定義我的自定義範圍自定義範圍:用於.NET應用程序的設置
[AttributeUsage(AttributeTargets.Property)]
public sealed class SiteScopedSettingAttribute : SettingAttribute
{
}
如何使用它在Visual Studio設置編輯器(使其可在「範圍」下拉框)?
爲此,您必須手工編輯Settings.settings文件,將其打開爲XML文件並將文本放入Scope XML屬性中。