ConfigurationHelperService::WriteSettings Method (ExeConfigurationFileMap^, ConfigurationUserLevel, DocData^, String^, Boolean, SettingsPropertyValueCollection^)

 

Writes settings to the appropriate section after clearing existing settings.

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
void WriteSettings(
	ExeConfigurationFileMap^ fileMap,
	ConfigurationUserLevel userLevel,
	DocData^ appConfigDocData,
	String^ sectionName,
	bool isUserScoped,
	SettingsPropertyValueCollection^ values
)

Parameters

fileMap
Type: System.Configuration::ExeConfigurationFileMap^

ExeConfigurationFileMap.

userLevel
Type: System.Configuration::ConfigurationUserLevel

ConfigurationUserLevel.

appConfigDocData
Type: Microsoft.VisualStudio.Shell.Design.Serialization::DocData^

The DocData for the configuration file.

sectionName
Type: System::String^

The name of the section to write to.

isUserScoped
Type: System::Boolean

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

values
Type: System.Configuration::SettingsPropertyValueCollection^

The SettingsPropertyValueCollection from which to read the settings.

If values is null or empty, the settings will be cleared.

Return to top
Show: