共用方式為


BuildServiceHostProcess.Stop 方法 (TimeSpan, String%)

停止視窗 service/an 互動式處理序。

命名空間:  Microsoft.TeamFoundation.Build.Config
組件:  Microsoft.TeamFoundation.Build.Config (在 Microsoft.TeamFoundation.Build.Config.dll 中)

語法

'宣告
Public Shared Function Stop ( _
    timeout As TimeSpan, _
    <OutAttribute> ByRef message As String _
) As Boolean
public static bool Stop(
    TimeSpan timeout,
    out string message
)

參數

  • message
    型別:System.String%
    在成功的情況下, null 或警告訊息的顯示,如果失敗,便會顯示錯誤訊息。

傳回值

型別:System.Boolean
停止的服務/處理序。

.NET Framework 安全性

請參閱

參考

BuildServiceHostProcess 類別

Stop 多載

Microsoft.TeamFoundation.Build.Config 命名空間