Ejemplo n.º 1
0
 public ISiteMapNode FindSiteMapNode(string rawUrl)
 {
     if (rawUrl == null)
     {
         throw new ArgumentNullException("rawUrl");
     }
     rawUrl = rawUrl.Trim();
     if (rawUrl.Length == 0)
     {
         return(null);
     }
     if (urlPath.IsAppRelativePath(rawUrl))
     {
         rawUrl = urlPath.MakeVirtualPathAppAbsolute(rawUrl, "/");
     }
     if (this.urlTable.ContainsKey(rawUrl))
     {
         return(this.ReturnNodeIfAccessible(this.urlTable[rawUrl]));
     }
     return(null);
 }