IWorkspaceSettingsPersistance.GetWriter(String, String) 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.
Get a writer for a single file.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSourceWriter> GetWriter (string type, string location = default);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSourceWriter> GetWriter (string type, string? location = default);
abstract member GetWriter : string * string -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSourceWriter>
Public Function GetWriter (type As String, Optional location As String = Nothing) As Task(Of IWorkspaceSettingsSourceWriter)
Parameters
- type
- String
settings tuple (corresponding to the independent settings file name) Use SettingsTypes class constants
- location
- String
(relative) location under workspace root where to place the file. null = "per user /per workspace" (under our .vs folder) Empty = "workspace root".
Returns
writer