ConfigurationHelperService.WriteSettings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes settings to the appropriate section after clearing existing settings.
public:
void WriteSettings(System::Configuration::ExeConfigurationFileMap ^ fileMap, System::Configuration::ConfigurationUserLevel userLevel, Microsoft::VisualStudio::Shell::Design::Serialization::DocData ^ appConfigDocData, System::String ^ sectionName, bool isUserScoped, System::Configuration::SettingsPropertyValueCollection ^ values);
public void WriteSettings (System.Configuration.ExeConfigurationFileMap fileMap, System.Configuration.ConfigurationUserLevel userLevel, Microsoft.VisualStudio.Shell.Design.Serialization.DocData appConfigDocData, string sectionName, bool isUserScoped, System.Configuration.SettingsPropertyValueCollection values);
member this.WriteSettings : System.Configuration.ExeConfigurationFileMap * System.Configuration.ConfigurationUserLevel * Microsoft.VisualStudio.Shell.Design.Serialization.DocData * string * bool * System.Configuration.SettingsPropertyValueCollection -> unit
Public Sub WriteSettings (fileMap As ExeConfigurationFileMap, userLevel As ConfigurationUserLevel, appConfigDocData As DocData, sectionName As String, isUserScoped As Boolean, values As SettingsPropertyValueCollection)
Parameters
- userLevel
- ConfigurationUserLevel
- sectionName
- String
The name of the section to write to.
- isUserScoped
- Boolean
true
if the settings are user-specific, otherwise false
.
The SettingsPropertyValueCollection from which to read the settings.