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
- serviceName
Type: System.String
- resetDays
Type: System.Int32
- delayMinutes
Type: System.Int32
.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.