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
- serviceName
Type: System.String
- resetDays
Type: System.Int32
- delayMinutes
Type: System.Int32
- restartOnNonCrashFailures
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.