Base. Request Additional Time(Int32) Method
Requests additional time for a pending operation.
public: void RequestAdditionalTime(int milliseconds);
public void RequestAdditionalTime (int milliseconds);
[System.Runtime.InteropServices.ComVisible(false)] public void RequestAdditionalTime (int milliseconds);
member this.RequestAdditionalTime : int -> unit
Public Sub RequestAdditionalTime (milliseconds As Integer)
The requested time in milliseconds.
The service is not in a pending state.
The RequestAdditionalTime method is intended to be called by the overridden OnContinue, OnPause, OnStart, or OnStop methods to request additional time for a pending operation, to prevent the Service Control Manager (SCM) from marking the service as not responding. If the pending operation is not a continue, pause, start, or stop, an InvalidOperationException is thrown.