示例#1
0
 void AddWeb(VWeb web)
 {
     if (web.ID == Guid.Empty)
     {
         web.ID = Guid.NewGuid();
     }
     if (string.IsNullOrEmpty(web.Title))
     {
         web.Title = "WebName" + web.ID.ToString().Substring(5);
     }
     web.ParentSite = this.ParentSite;
     web.ParentWeb  = this;
     _Webs.Add(web);
 }
示例#2
0
 private void SetRootWeb(VWeb value)
 {
     value.ParentSite = this;
     value.ParentWeb  = null;
     _RootWeb         = value;
 }