You are hereCreate a SharePoint Content Type programmatically / Reply to comment
Reply to comment
Steve,
Add the following
Submitted by Joe (not verified) on Sun, 28/12/2008 - 9:12pm.
Steve,
Add the following line:
<code>
p_web.ContentTypes.Add(CustomContentType);
</code>
before this line:
<code>
CustomContentType.Update();
</code>
And it should work.
Good luck,
Joe