ServiceControlManagerUtility.SetRestartsOnFailure 方法 (String, Int32, Int32)

命名空间:  Microsoft.TeamFoundation.Framework.Server.Alm
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Sub SetRestartsOnFailure ( _
    serviceName As String, _
    resetDays As Integer, _
    delayMinutes As Integer _
)
public void SetRestartsOnFailure(
    string serviceName,
    int resetDays,
    int delayMinutes
)

参数

.NET Framework 安全性

请参见

参考

ServiceControlManagerUtility 类

SetRestartsOnFailure 重载

Microsoft.TeamFoundation.Framework.Server.Alm 命名空间