NET SFTP Library
UserName Property (SFTP)
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : UserName Property
Specifies the user name to use while communicating with the FTP Server.
Syntax
'Declaration
 
Public Property UserName As System.String
'Usage
 
Dim instance As SFTP
Dim value As System.String
 
instance.UserName = value
 
value = instance.UserName
public System.string UserName {get; set;}
public read-write property UserName: System.String; 
public function get,set UserName : System.String
public: __property System.string* get_UserName();
public: __property void set_UserName( 
   System.string* value
);
public:
property System.String^ UserName {
   System.String^ get();
   void set (    System.String^ value);
}
Example
SFTP sftp = new SFTP(); //Trial Mode            
//SFTP sftp = new SFTP("place user name here", "place license key here");
 
// set the user name to use against the ftp server
sftp.UserName  = "anonymous"; // anonymous user
 
System.Console.WriteLine("The login user  is {0}", sftp.UserName );
Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp As SFTP = New SFTP("place user name here", "place license key here");
 
' set the user name to use against the ftp server
sftp.UserName  = "anonymous" ' anonymous user
 
System.Console.WriteLine("The login user  is {0}", sftp.UserName )
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