Dev2.Intellisense.Helper.FileSystemQuery.GetComputerNamesOnNetwork C# (CSharp) Méthode

GetComputerNamesOnNetwork() public méthode

public GetComputerNamesOnNetwork ( string searchPath, List queryCollection ) : List
searchPath string
queryCollection List
Résultat List
      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;
        }