NET SFTP Library
HostAddress Property
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : HostAddress Property
Specifies the host name or IP Address of the FTP Server.
Syntax
'Declaration
 
Public Property HostAddress As System.String
'Usage
 
Dim instance As SFTP
Dim value As System.String
 
instance.HostAddress = value
 
value = instance.HostAddress
public System.string HostAddress {get; set;}
public read-write property HostAddress: System.String; 
public function get,set HostAddress : System.String
public: __property System.string* get_HostAddress();
public: __property void set_HostAddress( 
   System.string* value
);
public:
property System.String^ HostAddress {
   System.String^ get();
   void set (    System.String^ value);
}
Example
// this is for the trial version. Uncomment and use the version you need
SFTP sftp = new SFTP(); //Trial Mode            
//SFTP sftp = new SFTP("place user name here", "place license key here");
 
// set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com"; // replace with your SFTP server
 
System.Console.WriteLine("The SSH server is {0}", sftp.HostAddress);
' this is for the trial version. Uncomment and use the version you need
Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp As SFTP = New SFTP("place user name here", "place license key here");
 
' set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com" ' replace with your SFTP server
 
System.Console.WriteLine("The SSH server is {0}", sftp.HostAddress)
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

SFTP Class
SFTP Members