NET SFTP Library
TimeZoneList Property
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : TimeZoneList Property
Return a list of all the time zones and their GMT offset. This can be used to populate a drop down list similar to the Date Property Dialog in Windows XP or Windows Vista.
Syntax
'Declaration
 
Public ReadOnly Property TimeZoneList As System.Collections.Generic.SortedList(Of String,Integer)
'Usage
 
Dim instance As SFTP
Dim value As System.Collections.Generic.SortedList(Of String,Integer)
 
value = instance.TimeZoneList
public System.Collections.Generic.SortedList<string,int> TimeZoneList {get;}
public read-only property TimeZoneList: System.Collections.Generic.SortedList; 
public function get TimeZoneList : System.Collections.Generic.SortedList
public: __property System.Collections.Generic.SortedList<string*,int>* get_TimeZoneList();
public:
property System.Collections.Generic.SortedList<String^,int>^ TimeZoneList {
   System.Collections.Generic.SortedList<String^,int>^ get();
}
Example
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
sftp.UserName  = "anonymous"; // replace with your user name
sftp.Password = "user@mail.com"; // replace with your password
 
//Return a list of all the time zones and their GMT offset Used to populate a drop down 
// list similar to the Date Property Dialog in Windows XP 
System.Console.WriteLine("The FTP component`s registered time zones are");
 
foreach (string timezone in sftp.TimeZoneList.Keys)
{
    System.Console.WriteLine(timezone);
}
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