The LastCrawlStartTime property of the SearchCatalog class gets the start time of the last completed crawl. Crawl times are updated after any successful crawl.
System.DateTime specifies the start time of the last completed crawl.
|System.InvalidCastException||The catalog has never been crawled.|
If the catalog has never been crawled, accessing the LastCrawlStartTime property might cause a System.InvalidCastException to be thrown. Even if an exception is not thrown, the LastCrawlStartTime property returns 12/30/1899 12:00:00 AM as the Date/Time.
Platforms: Microsoft Windows Server 2003
Security: Code Access Security