NET FTP Library
TimeZoneList Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP 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 FTP
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
FTP ftp = new FTP(); //Trial Mode            
//FTP ftp = new FTP("place user name here", "place license key here");
 
// set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu"; // a hungarian university. change this to your ftp server
ftp.UserName = "anonymous"; // replace with your user name
ftp.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 ftp.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

FTP Class
FTP Members