Partager via


CustomSettingsHelper.GetSettingsForTask(IWorkspaceSettings, String) Method

Definition

Gives you a workspace setting source associated with a task name.

public static Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSource? GetSettingsForTask (Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings taskSettings, string taskName);
static member GetSettingsForTask : Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings * string -> Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSource
Public Shared Function GetSettingsForTask (taskSettings As IWorkspaceSettings, taskName As String) As IWorkspaceSettingsSource

Parameters

taskSettings
IWorkspaceSettings

The tasks.vs.json task setting.

taskName
String

The task that you want to retrieve the workspace setting for.

Returns

Workspace setting source associated with the taskName.

Applies to