Welcome to MSDN Blogs Sign in | Join | Help

WSS 3.0 : How to add a new ContentType?

Here you go for the sample,

SPWeb MyWeb = new SPSite("http://<Server>/sites/Team%20Site/default.aspx").OpenWeb();

SPContentType DocTypes = MyWeb.AvailableContentTypes["Document"];

SPContentType MyType = new SPContentType(DocTypes, MyWeb.ContentTypes, "Test");

MyWeb.ContentTypes.Add(MyType);

 

Published Tuesday, November 28, 2006 3:10 PM by Karthikeyan

Comments

# re: WSS 3.0 : How to add a new ContentType?

Tuesday, June 05, 2007 9:38 AM by shah-mehul

hi can we add the content Type across the Site

and if yes then what other settings we need to keep in mind

# 2007 MOSS Resource Links (Microsoft Office SharePoint Server)

Wednesday, September 12, 2007 11:14 AM by The Boiler Room - Mark Kruger, Microsoft SharePoint MVP

2007 MOSS Resource Links (Microsoft Office SharePoint Server) Here is an assortment of various 2007 Microsoft

# SharePoint resources

Monday, February 18, 2008 10:23 AM by SharePoint mola

Gracias a Mark Kruger (SharePoint MVP) por esta lista de recursos de SharePoint donde podréis encontrar

Anonymous comments are disabled
 
Page view tracker