This method waits for all in-progress input event handlers to finish, and then joins (shuts down) the background thread that was created in StartReceiving. Thus, when this function returns you can be sure that no more event handlers will be invoked.
It is illegal to call this method from an input event handler (ie, from the background thread), and doing so throws an exception. If an event handler really needs to call this method, consider using BeginInvoke to schedule it on another thread.
public StopReceiving ( ) : void | ||
return | void |