SharePoint Integrator V4 - Online Help
SharePoint Integrator V4
Questions / Feedback?

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.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 4.0.6240.0