3.2.5.28.2.2.4 AddAvailableContentType
Return Type: Microsoft.SharePoint.Client.ContentType
Adds the specified content type to the content type collection.
Parameters:
contentTypeId: Specifies the identifier of the content type to be added to the content type collection. It MUST exist in the web's available content types.
Type: CSOM String
Exceptions:
Error Code |
Error Type Name |
Condition |
---|---|---|
183 |
Microsoft.SharePoint.SPException |
A ContentType with the same name exists. |