This documentation is archived and is not being maintained.
ServiceControlManagerUtility::SetRestartsOnFailure Method (String, Int32, Int32, Boolean)
Visual Studio 2013
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
public: void SetRestartsOnFailure( String^ serviceName, int resetDays, int delayMinutes, bool restartOnNonCrashFailures )
Parameters
- serviceName
- Type: System::String
- resetDays
- Type: System::Int32
- delayMinutes
- Type: System::Int32
- restartOnNonCrashFailures
- Type: System::Boolean
- 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.
Show: