AddContentType Method
Adds a new content type to the site.
Syntax
[VB.NET] Public Function AddContentType(ByVal ContentType As String, ByVal ParentContentTypeId As String) As String
[C#] public string AddContentType(string contentType, string parentContentTypeId);
Remarks
The site is specified by URL.
Before adding a new content type, specify the columns for the new content type in the Columns collection.
This method will return the ContentTypeId that SharePoint gives the new content type. The ContentTypeId may be used for further processing of this content type.