共用方式為


ExternalSettingsManager.GetWritableSettingsStore Method

Provides the WritableSettingsStore class for the requested scope which can be used for reading operations and writing operations.

Namespace:  Microsoft.VisualStudio.Settings
Assemblies:   Microsoft.VisualStudio.Settings.11.0 (in Microsoft.VisualStudio.Settings.11.0.dll)
  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)

Syntax

'宣告
<EnvironmentPermissionAttribute(SecurityAction.LinkDemand, Unrestricted := True)> _
Public Overrides NotOverridable Function GetWritableSettingsStore ( _
    scope As SettingsScope _
) As WritableSettingsStore
[EnvironmentPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public override sealed WritableSettingsStore GetWritableSettingsStore(
    SettingsScope scope
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Settings.WritableSettingsStore
A WritableSettingsStore instance that can be used to access the scope.

Exceptions

Exception Condition
ArgumentException

The given scope is not writable.

.NET Framework Security

See Also

Reference

ExternalSettingsManager Class

Microsoft.VisualStudio.Settings Namespace