WSS 3.0 : How to add a new ContentType?
Here you go for the sample,
SPWeb MyWeb = new SPSite("https://<Server>/sites/Team%20Site/default.aspx").OpenWeb();
SPContentType DocTypes = MyWeb.AvailableContentTypes["Document"];
SPContentType MyType = new SPContentType(DocTypes, MyWeb.ContentTypes, "Test");
MyWeb.ContentTypes.Add(MyType);
Comments
Anonymous
June 05, 2007
hi can we add the content Type across the Site and if yes then what other settings we need to keep in mindAnonymous
September 12, 2007
2007 MOSS Resource Links (Microsoft Office SharePoint Server) Here is an assortment of various 2007 MicrosoftAnonymous
February 18, 2008
Gracias a Mark Kruger (SharePoint MVP) por esta lista de recursos de SharePoint donde podréis encontrar