Dart.Ftp Namespace > Ftp Class > Marshal Method : Marshal(CopyResult,String,Object) Method |
Public Overloads Sub Marshal( _ ByVal result As CopyResult, _ ByVal message As String, _ ByVal state As Object _ )
Dim instance As Ftp Dim result As CopyResult Dim message As String Dim state As Object instance.Marshal(result, message, state)
This method is used to marshal CopyResult from a worker thread to the UI thread for typical display purposes. It calls the OnCopy method, which raises the Copy event.
See the SynchronizingObject property for information on updating UI controls in your event handler. Internally, SynchronizingObject.BeginInvoke is used to marshal data when the SynchronizingObject is not null, and Delegate.DynamicInvoke is used when SynchronizingObject is null. This method is provided for convenience; the developer may of course use alternative methods for marshaling data if more specialized use is required.