IProjectConfigurationService2.CustomizeLaunchSettingsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
自定义项目文件的启动设置
public:
System::Threading::Tasks::Task<Tuple<System::String ^, Microsoft::VisualStudio::Workspace::IPropertySettings ^, System::String ^, Tuple<int, int> ^> ^> ^ CustomizeLaunchSettingsAsync(System::String ^ debuggerType, Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ selectedContent, Microsoft::VisualStudio::Workspace::ProjectTargetFileContext ^ projectFileContext, bool allowDuplicate, bool updateContent);
public System.Threading.Tasks.Task<Tuple<string,Microsoft.VisualStudio.Workspace.IPropertySettings,string,Tuple<int,int>>> CustomizeLaunchSettingsAsync (string debuggerType, Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings selectedContent, Microsoft.VisualStudio.Workspace.ProjectTargetFileContext projectFileContext, bool allowDuplicate, bool updateContent);
abstract member CustomizeLaunchSettingsAsync : string * Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings * Microsoft.VisualStudio.Workspace.ProjectTargetFileContext * bool * bool -> System.Threading.Tasks.Task<string * Microsoft.VisualStudio.Workspace.IPropertySettings * string * int * int>
Public Function CustomizeLaunchSettingsAsync (debuggerType As String, selectedContent As IWorkspaceSettings, projectFileContext As ProjectTargetFileContext, allowDuplicate As Boolean, updateContent As Boolean) As Task(Of Tuple(Of String, IPropertySettings, String, Tuple(Of Integer, Integer)))
参数
- debuggerType
- String
调试器模板 id (可以为 null)
- selectedContent
- IWorkspaceSettings
模板中的初始内容
- projectFileContext
- ProjectTargetFileContext
项目文件上下文
- allowDuplicate
- Boolean
如果允许项目名称重复
- updateContent
- Boolean
如果将在磁盘上更新launch.json内容
返回
放置启动配置部分的上下文位置