WorkspaceServiceHelper.GetBuildService(IWorkspace) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从工作区返回生成服务
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::VisualStudio::Workspace::Build::IBuildService ^ GetBuildService(Microsoft::VisualStudio::Workspace::IWorkspace ^ workspace);
public static Microsoft.VisualStudio.Workspace.Build.IBuildService GetBuildService (this Microsoft.VisualStudio.Workspace.IWorkspace workspace);
public static Microsoft.VisualStudio.Workspace.Build.IBuildService? GetBuildService (this Microsoft.VisualStudio.Workspace.IWorkspace workspace);
static member GetBuildService : Microsoft.VisualStudio.Workspace.IWorkspace -> Microsoft.VisualStudio.Workspace.Build.IBuildService
<Extension()>
Public Function GetBuildService (workspace As IWorkspace) As IBuildService
参数
- workspace
- IWorkspace
工作区实例
返回
IBuildService 的实例,如果未找到,则为 null