共用方式為


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

適用於