Kuv sim searching rau me ntsis snippet rau chaws uas yuav ua li cas kuv yuav tsim ib SPWeb tshiab nyob rau hauv ib qhov chaw sau ntawv. Kuv tsis nrhiav nws ceev nrooj los yooj yim raws li kuv paub zoo ces kuv xav tias kuv yuav ncuav ua ke me ntsis nkag teb chaws rau cov kawm.
Cov cai no ua ib qho Wiki site:
SPSite siteCollection; siteCollection = tshiab SPSite("http://conchang-o9l8qi"); SPWeb w = siteCollection.OpenWeb(); w.Webs.Add("xyzzy", "xyzzy Title", "xyzzy hauj lwm", 1033, SPWebTemplate.WebTemplateWIKI, tsis tseeb, tsis tseeb); |
Kuv thawj zaug kev luag tshawb tau tejyam vim kuv twb nrhiav tau rau cov nqe lus xws li "provision ib lub web site uas siv cov qauv kwv sharepoint" thiab cov zoo li.
Yog hais tias koj nrhiav rau cov "Webs.Add()", koj mam li nrhiav ib tug xov tooj uas pab tau heev blog nkag, Cov khoom MSDN thiab SDK cov ntaub ntawv uas yuav mus rau qhov tob no kawm. Kuv twv yuav raug hu kom qhov chaw nov.
</kawg>
Ntawv cim npe Technorati: SharePoint