iControl.ConnectionInfo.getLastAccount C# (CSharp) Method

getLastAccount() public method

public getLastAccount ( ) : String
return String
        public String getLastAccount()
        {
            string sLastAccount = "";
            Microsoft.Win32.RegistryKey cu = Microsoft.Win32.Registry.CurrentUser;
            Microsoft.Win32.RegistryKey f5Key = cu.OpenSubKey(CONFIG_KEY);
            if (null != f5Key)
            {
                Object obj = null;
                if (null != (obj = f5Key.GetValue("LastAccount")))
                {
                    sLastAccount = Convert.ToString(obj);
                }
                f5Key.Close();
            }
            return sLastAccount;
        }