WorkspaceServiceHelper.GetBuildService(IWorkspace) 方法

定义

从工作区返回生成服务

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

适用于