Set this parameter to true, if you want to use the passive FTP transfer, otherwise set it to false.
Example





In This Topic
GdPicture14.WPF Namespace / GdViewer Class / SetFtpPassiveMode Method

SetFtpPassiveMode Method (GdViewer)

In This Topic
Specifies whether the FTP transfer mode used by DisplayFromFTP(String,String,String) method is Passive or not. The initial value is true.
Syntax
'Declaration
 
Public Sub SetFtpPassiveMode( _
   ByVal PassiveMode As Boolean _
) 
public void SetFtpPassiveMode( 
   bool PassiveMode
)
public procedure SetFtpPassiveMode( 
    PassiveMode: Boolean
); 
public function SetFtpPassiveMode( 
   PassiveMode : boolean
);
public: void SetFtpPassiveMode( 
   bool PassiveMode
) 
public:
void SetFtpPassiveMode( 
   bool PassiveMode
) 

Parameters

PassiveMode
Set this parameter to true, if you want to use the passive FTP transfer, otherwise set it to false.
Example
How to set the transfer mode to Active.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetFtpPassiveMode(False)
'Now transfer your data in active mode.
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetFtpPassiveMode(false);
//Now transfer your data in active mode.
See Also