/// <summary>
 /// Gets the status of Directory Servie Update.
 /// if the directory service is updated atleast once, it returns the date.
 /// </summary>
 /// <returns></returns>
 public static string GetLastUpdateTime()
 {
     DirectoryUpdateStatus du = new DirectoryUpdateStatus();
     du.LoadAll();
     if (du.RowCount > 0 && !du.IsColumnNull("LastUpdated"))
     {
         return du.LastUpdated.ToString();
     }
     else
     {
         return "Never Updated";
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the status of Directory Servie Update.
        /// if the directory service is updated atleast once, it returns the date.
        /// </summary>
        /// <returns></returns>
        public static string GetLastUpdateTime()
        {
            DirectoryUpdateStatus du = new DirectoryUpdateStatus();

            du.LoadAll();
            if (du.RowCount > 0 && !du.IsColumnNull("LastUpdated"))
            {
                return(du.LastUpdated.ToString());
            }
            else
            {
                return("Never Updated");
            }
        }