共用方式為


WorkspaceServiceHelper.GetBuildService2(IWorkspace) 方法

定義

從工作區傳回IBuildService2

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Workspace::Build::IBuildService2 ^ GetBuildService2(Microsoft::VisualStudio::Workspace::IWorkspace ^ workspace);
public static Microsoft.VisualStudio.Workspace.Build.IBuildService2 GetBuildService2 (this Microsoft.VisualStudio.Workspace.IWorkspace workspace);
public static Microsoft.VisualStudio.Workspace.Build.IBuildService2? GetBuildService2 (this Microsoft.VisualStudio.Workspace.IWorkspace workspace);
static member GetBuildService2 : Microsoft.VisualStudio.Workspace.IWorkspace -> Microsoft.VisualStudio.Workspace.Build.IBuildService2
<Extension()>
Public Function GetBuildService2 (workspace As IWorkspace) As IBuildService2

參數

workspace
IWorkspace

工作區實例

傳回

IBuildService2 的實例

適用於