How can I programmaticallyadd items to a custom list custom-content-type-specific-item-on-a-sharepointtype from a Sharepointlistprogrammatically. Hello Every one, Today we are going to see Programmatically Creating a ContentType in SharePoint. 2012 tutorialaddcontenttype to list or library addcontenttype to sharepoint online list or another listprogrammaticallysharepoint 2013 You'll need to add the field to the content type using SPContentType.FieldLinks - as SPContentType.Fields is read-only. As for creating the content type, I recommend first creating it at the RootWeb level, as a Site content type. Get the parent one from SPWeb.AvailableContentTypes. Add your field links. To add a site content type to a list programmatically, choose a content type from the collection that is returned by the AvailableContentTypes property of an SPWeb object (server) or a Web object (client). If you're comfortable with the SharePoint object model, it's possible to add a contenttype to a list or library programmatically. So you could write a feature receiver or even just a console application to be run on the server that would iterate through all lists within a site and add the contenttype. Learn how to help users select a particular contenttype from the New Documents menu by adding the contenttype to a list or library. You can reference contenttypes in the XML for a SharePointlist definition so that each time a user creates a list of that type, Microsoft SharePoint Foundation 2010 includes the contenttype on the list by default. Before you can add a contenttype to a list definition, you must be sure that the Click on the first line in the content type, and enter the Display Name of the column. Visual Studio will populate a list of possible columns once you start typing. STEP 5: Add a List with Content Types. Now we can finally create the list itself. Right click on the List folder, and click on Add-> New Item -> List and enter a name for the list. Hi there, I trying to create a Document Library programmatically and assign some ContentTypes on the fly to that Document Library on a Cusom List ItemAdded EvenHandler.