OK. Almost there using siteCollection.RootWeb.Locale but now I'm having trouble with converting the value.
The following will build without error but just looks plain wrong. Does anyone know what type of field I'm dealing with? //Inherit LCID from parent string LCID = siteCollection.RootWeb.Locale.ToString(); uint webLCID = Convert.ToUInt32(LCID); Regards, Paul -- Online Developer/SharePoint Administrator, ICT Infrastructure Team CEO Sydney From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Paul Noone Sent: Wednesday, 15 June 2011 11:13 AM To: ozMOSS (ozmoss@ozmoss.com) Subject: SPWebCollection Add Method Hi all, I'm trying to provision a subsite using this method and am stuck on the nLCID parameter. The API states a 32-bit GUID is required but I can't find one! :) I want to inherit from the parent Site which uses English-AU but am not sure if I'm getting it properly. Will the following work? if (currentPublishingSite.IsRoot) { using (SPSite siteCollection = new SPSite(SPContext.Current.Web.Url)) { using (SPWeb web = siteCollection.OpenWeb()) { //Inherit LCID from parent uint webLCID = SPSite.Language; // webUrl, Title, Description, LCID, Template, UniquePerms, bConvertIfThere using (SPWeb newSite = siteCollection.RootWeb.Webs.Add("AboutUs", "About Us", "More information about this site.", webLCID, _siteTemplateNamePrefix, false, false)) { // Perform additional customisations here } } } } Kind regards, Paul Noone --------------------------------------------------- Online Developer/SharePoint Administrator Infrastructure Team, ICT Catholic Education Office, Sydney p: (02) 9568 8461 f: (02) 9568 8483 e: paul.no...@ceosyd.catholic.edu.au<mailto:paul.no...@ceosyd.catholic.edu.au> w: http://www.ceosyd.catholic.edu.au/
_______________________________________________ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss