Condividi tramite


ServiceControlManagerUtility.SetRestartsOnFailure Method (String, Int32, Int32, Boolean)

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Sub SetRestartsOnFailure ( _
    serviceName As String, _
    resetDays As Integer, _
    delayMinutes As Integer, _
    restartOnNonCrashFailures As Boolean _
)
public void SetRestartsOnFailure(
    string serviceName,
    int resetDays,
    int delayMinutes,
    bool restartOnNonCrashFailures
)
public:
void SetRestartsOnFailure(
    String^ serviceName, 
    int resetDays, 
    int delayMinutes, 
    bool restartOnNonCrashFailures
)
member SetRestartsOnFailure : 
        serviceName:string * 
        resetDays:int * 
        delayMinutes:int * 
        restartOnNonCrashFailures:bool -> unit
public function SetRestartsOnFailure(
    serviceName : String, 
    resetDays : int, 
    delayMinutes : int, 
    restartOnNonCrashFailures : boolean
)

Parameters

.NET Framework Security

See Also

Reference

ServiceControlManagerUtility Class

SetRestartsOnFailure Overload

Microsoft.TeamFoundation.Common Namespace