Partager via


ServiceControlManagerUtility.SetRestartsOnFailure Method (String, Int32, Int32)

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 _
)
public void SetRestartsOnFailure(
    string serviceName,
    int resetDays,
    int delayMinutes
)
public:
void SetRestartsOnFailure(
    String^ serviceName, 
    int resetDays, 
    int delayMinutes
)
member SetRestartsOnFailure : 
        serviceName:string * 
        resetDays:int * 
        delayMinutes:int -> unit
public function SetRestartsOnFailure(
    serviceName : String, 
    resetDays : int, 
    delayMinutes : int
)

Parameters

.NET Framework Security

See Also

Reference

ServiceControlManagerUtility Class

SetRestartsOnFailure Overload

Microsoft.TeamFoundation.Common Namespace