IProjectConfigurationService2.CustomizeLaunchSettingsAsync 方法

定义

自定义发布设置到项目文件

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.js

返回

Task<Tuple<String,IPropertySettings,String,Tuple<Int32,Int32>>>

正在放置启动配置节的上下文位置

适用于