Udostępnij za pośrednictwem


IWorkspaceSettingsPersistance.GetWriter(String, String) Method

Definition

Get a writer for a single file.

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

Applies to