次の方法で共有


ConfigurationHelperService.WriteSettings Method

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)

Syntax

'宣言
Public Sub WriteSettings ( _
    fileMap As ExeConfigurationFileMap, _
    userLevel As ConfigurationUserLevel, _
    appConfigDocData As DocData, _
    sectionName As String, _
    isUserScoped As Boolean, _
    values As SettingsPropertyValueCollection _
)
public void WriteSettings(
    ExeConfigurationFileMap fileMap,
    ConfigurationUserLevel userLevel,
    DocData appConfigDocData,
    string sectionName,
    bool isUserScoped,
    SettingsPropertyValueCollection values
)

Parameters

  • 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.

Remarks

If values is nulla null reference (Nothing in Visual Basic) or empty, the settings will be cleared.

.NET Framework Security

See Also

Reference

ConfigurationHelperService Class

Microsoft.VisualStudio.Shell.Design.Serialization Namespace