如何使用代码识别设置是作用域用户还是应用程序?

时间:2013-11-20 12:39:21

标签: c#

如何找到settingproperty范围(无论是用户还是应用程序)

foreach (SettingsProperty setting in Properties.Settings.Default.Properties)
{
     //Find the scope of the setting
}

1 个答案:

答案 0 :(得分:0)

SettingsProperty.IsReadOnly值应指示是否可以更改。如果不能,那就是应用程序设置。