public List<string> GetComputerNamesOnNetwork(string searchPath, List<string> queryCollection)
{
if (searchPath != null && searchPath.Contains("\\"))
{
if (_computerNameCache.Count == 0 || DateTime.Now.Subtract(_gotComputerNamesLast) > _networkQueryTime)
{
_computerNameCache = FindNetworkComputers();
_gotComputerNamesLast = DateTime.Now;
}
queryCollection = _computerNameCache;
}
return queryCollection;
}