PowerTCP SSH and SFTP for .NET
Start Method (Ssh)




WaitCallback delegate specifying the function to execute.
Information to pass to the worker delegate function; can be null.
Starts a worker thread on which the specified delegate function executes.
Syntax
'Declaration
 
Public Sub Start( _
   ByVal worker As WaitCallback, _
   ByVal state As Object _
) 
'Usage
 
Dim instance As Ssh
Dim worker As WaitCallback
Dim state As Object
 
instance.Start(worker, state)
public void Start( 
   WaitCallback worker,
   object state
)
public: void Start( 
   WaitCallback* worker,
   Object* state
) 
public:
void Start( 
   WaitCallback^ worker,
   Object^ state
) 

Parameters

worker
WaitCallback delegate specifying the function to execute.
state
Information to pass to the worker delegate function; can be null.
Remarks

This method provides an easy means for executing blocking functions on a worker thread. Applications with a UI thread should use this technique to execute processes (like Connect and Read) that can block the UI thread.

The state parameter can be null for cases in which no state information needs to be passed to the worker delegate function.

Unhandled exceptions occurring on the worker thread will be caught and reported in the Error event.

See Also

Reference

Ssh Class
Ssh Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic