GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / SetFtpPassiveMode Method
Set this parameter to true, if you want to use the passive FTP transfer, otherwise set it to false.
Example





In This Topic
SetFtpPassiveMode Method (GdViewer)
In This Topic
Specifies if the FTP transfer mode used by DisplayFromFTP(String,String,String,String,Int32) 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