Xceed .NET Libraries Documentation
SynchronizingObject Property (FtpClient)


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpClient Class : SynchronizingObject Property
Gets or sets the object used to automatically redirect events on the main UI thread.
Syntax
'Declaration
 
Public Property SynchronizingObject As ISynchronizeInvoke
'Usage
 
Dim instance As FtpClient
Dim value As ISynchronizeInvoke
 
instance.SynchronizingObject = value
 
value = instance.SynchronizingObject
public ISynchronizeInvoke SynchronizingObject {get; set;}

Property Value

The System.ComponentModel.ISynchronizeInvoke object (System.Windows.Forms.Control for the .NET Compact Framework version) used to automatically redirect events on the main UI thread. By default, a null reference (Nothing in Visual Basic).
Remarks

This property should be set when performing GUI operations in event handlers.

If this property is set, messages will be pumped through a call to System.Windows.Forms.Application.DoEvents when a blocking method is called (Connect(), Login(), etc). When using asynchronous methods of the AsyncFtpClient class, messages will not be pumped by the library.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FtpClient Class
FtpClient Members