Udostępnij za pośrednictwem


ConfigurationHelperService.WriteSettings Method

Definition

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

appConfigDocData
DocData

The DocData for the configuration file.

sectionName
String

The name of the section to write to.

isUserScoped
Boolean

true if the settings are user-specific, otherwise false.

values
SettingsPropertyValueCollection

The SettingsPropertyValueCollection from which to read the settings.

Applies to