Reset Method  
 

Reset the internal state of the control, stopping the server and terminating all client connections.

Syntax

object.Reset

Parameters

None.

Return Value

None.

Remarks

The Reset method resets the internal state of the control. Property values are initialized to their internal defaults, open network connections will be closed and any handles allocated by the control will be released. Is the server is active when this method is called, the method will return immediately and the server shutdown process will proceed asynchronously in the background.

If this method is used to forcibly stop an active server, no further events will be generated by the control. The OnDisconnect event will not fire for each client session that is terminated and the OnStop event will not fire when the shutdown process has completed. If your application depends on these events, you should not use the Reset method to stop an active server.

See Also

Restart Method, Stop Method, OnStop Event