2011-03-22 84 views

回答

1
public void GetDomains() 
     { 
      try 
      { 
       Node parent = new Node(-1); 
       foreach (Node child in parent.Children) 
       { 
        Domain[] domains = library.GetCurrentDomains(child.Id); 
        if (domains != null && domains.Length >= 0) 
        { 
         foreach (Domain d in domains) 
         { 
          Response.Write(d.Name.ToString() + ";"); 
         } 
        } 
       } 
      } 
      catch (Exception ex) 
      { 
       throw new Exception(ex.Message.ToString()); 
      } 
     } 

得到的答案從這個link

+0

突然,library.GetCurrentDomains返回null,但我不知道爲什麼。它曾經工作 – Nick 2014-09-02 10:06:00