Add/remove content type to SharePoint List

In this post I will discuss about how to add/remove content type to and from SharePoint list.

Add/remove Content type in SharePoint Designer:

when you open a list in SPD you will find Content Types section as shown in the figure below.

Once you select content type region you will find content type actions in the ribbon as well.

Add/remove content type programmaticaly:

In code I have removed “Folder” content type and added “Image” content type to the list. And so it should look like this in SharePoint designer.

Hope that helps…!!


2 thoughts on “Add/remove content type to SharePoint List

  1. Hi there,

    I would like to do exactly what you did above in the programmatic way.

    A silly question is that where do you add these code?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s