CSharpTest.Net
SetRestartOnFailure Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Services Namespace > SvcControlManager Class : SetRestartOnFailure Method

restartAttempts
restartDelay
resetFailuresDelay

Glossary Item Box

Configures the service to auto-restart on failure

Syntax

Visual Basic (Declaration) 
Public Sub SetRestartOnFailure( _
   ByVal restartAttempts As Integer, _
   ByVal restartDelay As Integer, _
   ByVal resetFailuresDelay As Integer _
) 
C# 
public void SetRestartOnFailure( 
   int restartAttempts,
   int restartDelay,
   int resetFailuresDelay
)

Parameters

restartAttempts
restartDelay
resetFailuresDelay

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys