VCConfiguration.StopBuild 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
取消指定配置上当前正在进行的生成。
public:
void StopBuild();
public:
void StopBuild();
void StopBuild();
[System.Runtime.InteropServices.DispId(748)]
public void StopBuild ();
[<System.Runtime.InteropServices.DispId(748)>]
abstract member StopBuild : unit -> unit
Public Sub StopBuild ()
- 属性
示例
有关如何编译和运行此示例的信息,请参阅 如何:编译项目模型扩展性的示例代码 。
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim cfgs As IVCCollection
Dim cfg As VCConfiguration
Dim MyDbg As VCDebugSettings
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
cfg.StopBuild()
End Sub
End Module