I will create my web and subwebs hierarchy from code. In past, in powershell i was using
new-SPWeb -url $trimmed -template "BLANKINTERNET#0" -language 1055 -useparenttopnav -name $name1
What is the object model equivalent of that powershell command. I want to create web from URL. So the site.Webs.Add is no suitable for me,i want to setup the hierarchy from URL. So the code below is not OK for me.
site.Webs.Add(
txtSiteName.Text,
txtSiteName.Text,
Convert.ToUInt32(1033),
site.WebTemplate,
false,
false
);